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)
Sun, Nov 24, 2:46 PM
Unknown Object (File)
Sun, Nov 24, 2:46 PM
Unknown Object (File)
Sun, Nov 24, 2:46 PM
Unknown Object (File)
Sun, Nov 24, 12:36 PM
Unknown Object (File)
Nov 2 2024, 8:14 PM
Unknown Object (File)
Nov 2 2024, 8:14 PM
Unknown Object (File)
Nov 2 2024, 8:14 PM
Unknown Object (File)
Nov 2 2024, 8:12 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