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)
Tue, Jun 18, 11:28 AM
Unknown Object (File)
Sun, Jun 16, 2:30 AM
Unknown Object (File)
May 4 2024, 1:30 PM
Unknown Object (File)
May 2 2024, 1:42 PM
Unknown Object (File)
Apr 30 2024, 3:48 AM
Unknown Object (File)
Apr 27 2024, 8:45 AM
Unknown Object (File)
Apr 25 2024, 8:17 AM
Unknown Object (File)
Apr 23 2024, 2:55 AM

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.