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
F3540451: D4973.diff
Thu, Dec 26, 5:04 AM
Unknown Object (File)
Sat, Dec 14, 7:02 AM
Unknown Object (File)
Sat, Dec 14, 7:02 AM
Unknown Object (File)
Sat, Dec 14, 6:54 AM
Unknown Object (File)
Wed, Dec 4, 7:06 PM
Unknown Object (File)
Nov 19 2024, 2:45 AM
Unknown Object (File)
Nov 10 2024, 6:58 AM
Unknown Object (File)
Oct 27 2024, 8:10 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.