Page MenuHomePhabricator

[services] Rust Integration - Backup - Make check_error shared
ClosedPublic

Authored by karol on Sep 1 2022, 11:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 14, 9:22 PM
Unknown Object (File)
Sat, Dec 14, 6:16 AM
Unknown Object (File)
Sat, Dec 14, 6:16 AM
Unknown Object (File)
Sat, Dec 14, 6:16 AM
Unknown Object (File)
Sat, Dec 14, 6:16 AM
Unknown Object (File)
Sat, Dec 14, 6:16 AM
Unknown Object (File)
Sat, Dec 14, 6:15 AM
Unknown Object (File)
Sat, Dec 14, 6:14 AM

Details

Summary

Depends on D5030

I just moved the function check_error to the mutual space tools following the DRY rule.

Test Plan
cd services
yarn run-integration-tests backup

Works as before

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

karol edited the test plan for this revision. (Show Details)
karol added reviewers: max, varun, tomek.
karol edited the summary of this revision. (Show Details)
karol edited the summary of this revision. (Show Details)

rebase

tomek added inline comments.
services/backup/blob_client/src/get_client.rs
118 ↗(On Diff #16250)

Is there a way to avoid ERROR_MESSAGES in every call? E.g. we can create a function that calls check_error(&ERROR_MESSAGES) or modify ERROR_MESSAGES to be a struct that has check method. We're considering changing the approach of handling errors, so maybe this comment shouldn't be addressed here, but might become useful when designing the new approach.

This revision is now accepted and ready to land.Sep 5 2022, 7:42 AM
This revision was landed with ongoing or failed builds.Sep 8 2022, 4:10 AM
This revision was automatically updated to reflect the committed changes.