Page MenuHomePhabricator

[services] Use ensure! macro where possible
ClosedPublic

Authored by bartek on Oct 11 2022, 1:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 2, 8:14 PM
Unknown Object (File)
Sat, Nov 2, 8:14 PM
Unknown Object (File)
Sat, Nov 2, 8:14 PM
Unknown Object (File)
Sat, Nov 2, 8:12 PM
Unknown Object (File)
Fri, Oct 25, 6:48 PM
Unknown Object (File)
Wed, Oct 23, 4:10 PM
Unknown Object (File)
Wed, Oct 23, 3:29 PM
Unknown Object (File)
Wed, Oct 23, 2:07 PM

Details

Summary

Resolves ENG-1840. It was suggested to use anyhow::ensure! macro instead of bail! where possible.
There were only few places, where such replacement was possible, as most of the code use bail! with if let which cannot be easily transformed into ensure!.

Test Plan
  • Backup service container builds
  • Service integration tests pass

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable