feat: add with_canon_state_notification_sender fn (#7997)

This commit is contained in:
Matthias Seitz
2024-04-30 15:05:57 +02:00
committed by GitHub
parent d03150e13c
commit 29e0e8150c

View File

@ -156,6 +156,18 @@ where
}) })
} }
/// Replaces the canon state notification sender.
///
/// Caution: this will close any existing subscriptions to the previous sender.
#[doc(hidden)]
pub fn with_canon_state_notification_sender(
mut self,
canon_state_notification_sender: CanonStateNotificationSender,
) -> Self {
self.canon_state_notification_sender = canon_state_notification_sender;
self
}
/// Set the sync metric events sender. /// Set the sync metric events sender.
/// ///
/// A transmitter for sending synchronization metrics. This is used for monitoring the node's /// A transmitter for sending synchronization metrics. This is used for monitoring the node's