While preparing #946, I was again struck by the `discovery` module being very weighty (nearly 800 dense lines). The intent of this change is only to improve readability. There are no functional changes. The following aesthetic changes have been made: * `control::discovery` has been renamed to `control::destination` to be more consistent with the rest of conduit's terminology (destinations aren't the only thing that need to be discovered). * In that vein, the `Discovery` type has been renamed `Resolver` (since it exposes one function, `resolve`). * The `Watch` type has been renamed `Resolution`. This disambiguates the type form `futures_watch::Watch`(which is used in the same code) and makes it more clearly the product of a `Resolver`. * The `Background` and `DiscoveryWork` names were very opaque. `Background` is now `background::Config` to indicate that it can't actually _do_ anything; and `DiscoveryWork` is now `background::Process` to indicate that it's responsible for processing destination updates. * `DestinationSet` is now a private implementation detail in the `background` module. * An internal `ResolveRequest` type replaces an unnamed tuple (now that it's used across files). * `rustfmt` has been run on `background.rs` and `endpoint.rs` |
||
---|---|---|
.github | ||
proxy | ||
CONTRIBUTING.md | ||
Cargo.lock | ||
Cargo.toml | ||
DCO | ||
LICENSE |