mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
feat: add with_canon_state_notification_sender fn (#7997)
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user