Page MenuHomePhabricator

[services] Backup - Rust lib - Add is initialized
ClosedPublic

Authored by karol on Aug 19 2022, 1:28 AM.
Tags
None
Referenced Files
F3536194: D4884.id16064.diff
Wed, Dec 25, 5:43 PM
F3536187: D4884.id15994.diff
Wed, Dec 25, 5:41 PM
Unknown Object (File)
Sun, Dec 15, 10:32 PM
Unknown Object (File)
Sat, Dec 14, 7:02 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, 7:02 AM
Unknown Object (File)
Sat, Dec 14, 7:02 AM

Details

Summary

Depends on D4861

Adding a function that checks whether the client's been initialized

Test Plan

test plan in D4870

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Aug 19 2022, 1:29 AM
Harbormaster failed remote builds in B11468: Diff 15779!
karol edited the test plan for this revision. (Show Details)
karol added reviewers: varun, tomek.
tomek added a reviewer: ashoat. tomek added 1 blocking reviewer(s): varun.

Adding @ashoat because there are new dependencies.

services/backup/rust_lib/Cargo.toml
8

Why do we use 1.0 when 1.20 is available? I think in some diff it was agreed that we should specify major and minor versions.

9–11

In one diff it was agreed that we should specify major and minor versions. @varun am I right?

services/backup/rust_lib/src/lib.rs
16

We should avoid using legacy syntax and instead use use.

Dependencies seem reasonable, but curious about @tomek's versioning questions above

varun added inline comments.
services/backup/rust_lib/Cargo.toml
9–11

yeah we should omit the patch version

services/backup/rust_lib/src/lib.rs
33–38

can just combine these with an "or" operator, right?

This revision is now accepted and ready to land.Aug 22 2022, 8:55 AM
services/backup/rust_lib/Cargo.toml
8

ok, we can change to 1.20

9–11

ok

services/backup/rust_lib/src/lib.rs
16

ok

33–38

We can do this super simple thing in many more ways, I don't think that matters, really.

tomek requested changes to this revision.Aug 25 2022, 9:58 AM

Something (probably rebase) went wrong with this diff. An update with run cargo fmt description introduced a lot of new code.

This revision now requires changes to proceed.Aug 25 2022, 9:58 AM
This revision is now accepted and ready to land.Aug 26 2022, 1:50 AM