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)
Sat, Nov 9, 3:55 AM
Unknown Object (File)
Tue, Nov 5, 9:32 AM
Unknown Object (File)
Tue, Nov 5, 9:32 AM
Unknown Object (File)
Tue, Nov 5, 9:32 AM
Unknown Object (File)
Tue, Nov 5, 9:28 AM
Unknown Object (File)
Thu, Oct 24, 5:58 PM
Unknown Object (File)
Oct 10 2024, 5:09 PM
Unknown Object (File)
Sep 13 2024, 2:24 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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