From 49feb0ef704be631387e3e1b38186f0300c054ab Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin Date: Tue, 3 Sep 2024 16:43:58 +0100 Subject: [PATCH] Revert "comment subscribe_with_head" This reverts commit 7beb8d9e7884185322584a4dbcbfed490413a434. --- crates/exex/exex/src/manager.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/crates/exex/exex/src/manager.rs b/crates/exex/exex/src/manager.rs index 6ff5290a74e4..7e241e5c7474 100644 --- a/crates/exex/exex/src/manager.rs +++ b/crates/exex/exex/src/manager.rs @@ -165,14 +165,13 @@ impl ExExNotificationsSubscriber { ExExNotifications::Left(ExExNotificationsWithoutHead(&mut self.notifications)) } - // 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)) - // } + /// 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.