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)
Tue, May 14, 9:44 AM
Unknown Object (File)
Sun, Apr 21, 12:15 PM
Unknown Object (File)
Sun, Apr 21, 12:14 PM
Unknown Object (File)
Sun, Apr 21, 12:14 PM
Unknown Object (File)
Sun, Apr 21, 12:11 PM
Unknown Object (File)
Apr 11 2024, 7:51 PM
Unknown Object (File)
Apr 7 2024, 2:11 PM
Unknown Object (File)
Mar 20 2024, 7:45 PM

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