Page MenuHomePhabricator

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

Authored by karol on Aug 19 2022, 1:28 AM.
Tags
None
Referenced Files
F3265415: D4884.id15978.diff
Sat, Nov 16, 1:17 AM
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:10 PM
Unknown Object (File)
Sun, Oct 27, 8:10 PM
Unknown Object (File)
Sun, Oct 27, 8:10 PM
Unknown Object (File)
Sun, Oct 27, 8:10 PM
Unknown Object (File)
Sun, Oct 27, 8:10 PM

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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #15779)

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 ↗(On Diff #15779)

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 ↗(On Diff #15779)

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 ↗(On Diff #15779)

yeah we should omit the patch version

services/backup/rust_lib/src/lib.rs
33–38 ↗(On Diff #15779)

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 ↗(On Diff #15779)

ok, we can change to 1.20

9–11 ↗(On Diff #15779)

ok

services/backup/rust_lib/src/lib.rs
16 ↗(On Diff #15779)

ok

33–38 ↗(On Diff #15779)

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