jonhoo / faktory-rs

Rust bindings for Faktory clients and workers
Apache License 2.0
205 stars 16 forks source link

Add ServerState and Client::current_info #63

Closed rustworthy closed 6 months ago

rustworthy commented 6 months ago

Addresses #60

We will also add sets to DataSnapshot struct as soon as the Faktory server starts returning it.


This change is Reviewable

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 68.0%. Comparing base (eac9545) to head (a36bf2a).

Additional details and impacted files | [Files](https://app.codecov.io/gh/jonhoo/faktory-rs/pull/63?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jon+Gjengset) | Coverage Δ | | |---|---|---| | [src/proto/client/mod.rs](https://app.codecov.io/gh/jonhoo/faktory-rs/pull/63?src=pr&el=tree&filepath=src%2Fproto%2Fclient%2Fmod.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jon+Gjengset#diff-c3JjL3Byb3RvL2NsaWVudC9tb2QucnM=) | `86.9% <100.0%> (+3.4%)` | :arrow_up: | | [src/proto/mod.rs](https://app.codecov.io/gh/jonhoo/faktory-rs/pull/63?src=pr&el=tree&filepath=src%2Fproto%2Fmod.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jon+Gjengset#diff-c3JjL3Byb3RvL21vZC5ycw==) | `50.0% <ø> (ø)` | | | [src/proto/single/ent/progress.rs](https://app.codecov.io/gh/jonhoo/faktory-rs/pull/63?src=pr&el=tree&filepath=src%2Fproto%2Fsingle%2Fent%2Fprogress.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jon+Gjengset#diff-c3JjL3Byb3RvL3NpbmdsZS9lbnQvcHJvZ3Jlc3MucnM=) | `0.0% <ø> (ø)` | | | [src/proto/single/resp.rs](https://app.codecov.io/gh/jonhoo/faktory-rs/pull/63?src=pr&el=tree&filepath=src%2Fproto%2Fsingle%2Fresp.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jon+Gjengset#diff-c3JjL3Byb3RvL3NpbmdsZS9yZXNwLnJz) | `87.6% <100.0%> (+0.1%)` | :arrow_up: | | [src/proto/single/utils.rs](https://app.codecov.io/gh/jonhoo/faktory-rs/pull/63?src=pr&el=tree&filepath=src%2Fproto%2Fsingle%2Futils.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jon+Gjengset#diff-c3JjL3Byb3RvL3NpbmdsZS91dGlscy5ycw==) | `100.0% <100.0%> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/jonhoo/faktory-rs/pull/63/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jon+Gjengset)