From 7beb8d9e7884185322584a4dbcbfed490413a434 Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin Date: Tue, 3 Sep 2024 16:43:36 +0100 Subject: [PATCH] comment subscribe_with_head --- crates/exex/exex/src/manager.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/crates/exex/exex/src/manager.rs b/crates/exex/exex/src/manager.rs index 7e241e5c7474..6ff5290a74e4 100644 --- a/crates/exex/exex/src/manager.rs +++ b/crates/exex/exex/src/manager.rs @@ -165,13 +165,14 @@ impl ExExNotificationsSubscriber { ExExNotifications::Left(ExExNotificationsWithoutHead(&mut self.notifications)) } - /// Subscribe to notifications with the given head. - /// - /// Notifications will be sent starting from the head, not inclusive. For example, if - /// `head.number == 10`, then the first notification will be with `block.number == 11`. - pub fn subscribe_with_head(&mut self, head: ExExHead) -> ExExNotifications<'_> { - ExExNotifications::Right(ExExNotificationsWithHead(&mut self.notifications, head)) - } + // TODO(alexey): uncomment when backfill is implemented in `ExExNotificationsWithHead` + // /// Subscribe to notifications with the given head. + // /// + // /// Notifications will be sent starting from the head, not inclusive. For example, if + // /// `head.number == 10`, then the first notification will be with `block.number == 11`. + // pub fn subscribe_with_head(&mut self, head: ExExHead) -> ExExNotifications<'_> { + // ExExNotifications::Right(ExExNotificationsWithHead(&mut self.notifications, head)) + // } } /// A stream of [`ExExNotification`]s. The stream will emit notifications for all blocks.