Skip to content

Commit

Permalink
Revert "comment subscribe_with_head"
Browse files Browse the repository at this point in the history
This reverts commit 7beb8d9.
  • Loading branch information
shekhirin committed Sep 3, 2024
1 parent 7beb8d9 commit 49feb0e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions crates/exex/exex/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 49feb0e

Please sign in to comment.