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)
Sun, Jun 23, 12:06 PM
Unknown Object (File)
Sun, Jun 23, 10:55 AM
Unknown Object (File)
Sat, Jun 22, 6:17 PM
Unknown Object (File)
Wed, Jun 19, 10:12 AM
Unknown Object (File)
Mon, Jun 17, 10:52 AM
Unknown Object (File)
Sat, Jun 15, 9:43 AM
Unknown Object (File)
Fri, Jun 14, 9:52 PM
Unknown Object (File)
Fri, Jun 14, 2:38 PM

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.