Skip to content

Commit

Permalink
Merge branch 'ref/global-config-watch' into feat/buffer-check-mem
Browse files Browse the repository at this point in the history
  • Loading branch information
jjbayer committed Sep 5, 2024
2 parents 0c46222 + cb422f5 commit 31dfbf3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions relay-server/src/services/global_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ pub struct Get;
///
/// For a one-off update, [`GlobalConfigService`] responds to
/// [`GlobalConfigManager::Get`] messages with the latest instance of the
/// [`GlobalConfig`]. For continued updates, you can subscribe with
/// [`GlobalConfigManager::Subscribe`] to get a receiver back where up-to-date
/// instances will be sent to, while [`GlobalConfigService`] manages the update
/// frequency from upstream.
/// [`GlobalConfig`].
pub enum GlobalConfigManager {
/// Returns the most recent global config.
Get(relay_system::Sender<Status>),
Expand Down Expand Up @@ -184,10 +181,6 @@ impl fmt::Debug for GlobalConfigHandle {
}

/// Service implementing the [`GlobalConfigManager`] interface.
///
/// The service offers two alternatives to fetch the [`GlobalConfig`]:
/// responding to a [`Get`] message with the config for one-off requests, or
/// subscribing to updates with [`Subscribe`] to keep up-to-date.
#[derive(Debug)]
pub struct GlobalConfigService {
config: Arc<Config>,
Expand Down

0 comments on commit 31dfbf3

Please sign in to comment.