We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a3f0be commit 0ab15ccCopy full SHA for 0ab15cc
src/event_scanner/scanner/common.rs
@@ -147,7 +147,10 @@ fn spawn_log_consumers_in_stream_mode<N: Network>(
147
loop {
148
match range_rx.recv().await {
149
Ok(message) => {
150
- tx.send(message).await.expect("receiver dropped only if we exit this loop");
+ if tx.send(message).await.is_err() {
151
+ debug!("Range processor dropped, stopping range reception");
152
+ break;
153
+ }
154
}
155
Err(RecvError::Closed) => {
156
debug!("No more block ranges to receive");
0 commit comments