We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd42c2e commit da2e8b8Copy full SHA for da2e8b8
src/block_range_scanner.rs
@@ -127,9 +127,6 @@ pub enum Error {
127
128
#[error("WebSocket connection failed after {0} attempts")]
129
WebSocketConnectionFailed(usize),
130
-
131
- #[error("End of block batch")]
132
- Eof,
133
}
134
135
#[derive(Debug)]
@@ -546,13 +543,9 @@ impl<N: Network> Service<N> {
546
543
547
544
548
545
549
- info!(batch_count = batch_count, "Historical sync completed");
+ info!(batch_count = batch_count, "Historical sync completed, closing the stream");
550
551
- if let Some(sender) = &self.subscriber &&
552
- sender.send(Err(Error::Eof)).await.is_err()
553
- {
554
- warn!("Subscriber channel closed, cleaning up");
555
- }
+ _ = self.subscriber.take();
556
557
Ok(())
558
0 commit comments