Page MenuHomePhabricator

[services] Backup - Connect to Blob - Rust - Get rid of unwrap
AbandonedPublic

Authored by karol on Aug 29 2022, 1:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 6:58 AM
Unknown Object (File)
Sun, Oct 27, 8:10 PM
Unknown Object (File)
Sun, Oct 27, 8:09 PM
Unknown Object (File)
Mon, Oct 21, 12:48 PM
Unknown Object (File)
Oct 14 2024, 12:11 AM
Unknown Object (File)
Sep 26 2024, 8:36 PM
Unknown Object (File)
Sep 26 2024, 8:36 PM
Unknown Object (File)
Sep 26 2024, 8:31 PM

Details

Summary

Depends on D4972

As suggested in D4870, we should not use unwrap

Test Plan

service builds correctly

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek requested changes to this revision.Aug 29 2022, 5:28 AM
tomek added inline comments.
services/backup/blob_client/src/put_client.rs
141–144

Why can't this if be a part of match?

144–180

This code is deeply nested and contains a couple of mutable variables. Could you find a way to simplify it?

157–162

What about using try_send instead of hanging?

228–231

Why this change is here? The code should be formatted in the diff that introduced it.

This revision now requires changes to proceed.Aug 29 2022, 5:28 AM
services/backup/blob_client/src/put_client.rs
157–162

Yes, good idea!

Abandoning this stack in favor of the new one that starts @ D5002.

All the comments have been either addressed inline or in the new stack.