HomePhabricator
Diffusion Comm de96baf6bece

[services] Tunnelbroker - Changes to use `bail` and `ensure` Anyhow macros

Description

[services] Tunnelbroker - Changes to use bail and ensure Anyhow macros

Summary:
This diff introduces a minor refactoring to use bail and ensure Anyhow macros.
This is a more idiomatic way to use Anyhow and makes the code more readable.

Test Plan: Service is successfully built and the Rust function is successfully called from the C++ side.

Reviewers: jon, michal, marcin, varun, tomek

Reviewed By: jon, marcin, tomek

Subscribers: ashoat, tomek, atul, abosh

Differential Revision: https://phab.comm.dev/D5262

Details

Provenance
maxAuthored on Sep 29 2022, 5:35 AM
Reviewer
jon
Differential Revision
D5262: [services] Tunnelbroker - Changes to use `bail` and `ensure` Anyhow macros
Parents
rCOMM3850cd7a6cd7: [keyserver] Update importJSON to use fs instead of import
Branches
Unknown
Tags
Unknown