Page MenuHomePhabricator

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

Authored by max on Sep 29 2022, 5:36 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 10:28 PM
Unknown Object (File)
Mon, Nov 25, 10:28 PM
Unknown Object (File)
Mon, Nov 25, 10:28 PM
Unknown Object (File)
Mon, Nov 25, 10:28 PM
Unknown Object (File)
Nov 15 2024, 5:04 AM
Unknown Object (File)
Nov 15 2024, 2:23 AM
Unknown Object (File)
Nov 9 2024, 3:55 AM
Unknown Object (File)
Nov 5 2024, 9:32 AM

Details

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.

Diff Detail

Repository
rCOMM Comm
Branch
changes-to-use-bail-and-ensure
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

max held this revision as a draft.
max published this revision for review.Sep 29 2022, 6:05 AM
max edited the summary of this revision. (Show Details)
max edited the test plan for this revision. (Show Details)
max added reviewers: michal, tomek.
max edited the summary of this revision. (Show Details)
marcin added a reviewer: tomek.
This revision is now accepted and ready to land.Sep 30 2022, 6:15 AM