Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ pub type AllBackends = Arc<BTreeMap<backend::Name, Backend>>;
/// all possible backends, but not reporting nor tracking their health.
#[async_trait]
pub trait Resolver: Send + Sync {
/// Start running a resolver.
/// Returns a receiver to track the latest known set of backends.
///
/// Returns a receiver to track ongoing activity.
/// Note that if the `Resolver` is dropped or terminated,
/// this watch channel will stop updating this backend set.
fn monitor(&mut self) -> watch::Receiver<AllBackends>;

/// Cleanly terminates the server.
Expand Down