Skip to content

Commit b5cebf8

Browse files
committed
clippy
1 parent 90d24dc commit b5cebf8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/block_range_scanner/common.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,11 @@ async fn get_first_block<
8080
match first_block {
8181
Ok(block) => return Some(block),
8282
Err(e) => {
83-
error!(error = %e, "Error receiving block from stream");
8483
match e {
8584
subscription::Error::Lagged(_) => {
86-
continue;
85+
// scanner already accounts for skipped block numbers
86+
// next block will be the actual incoming block
87+
info!("Skipping Error::Lagged, next block should be the first live block");
8788
}
8889
subscription::Error::Timeout => {
8990
_ = sender.try_stream(ScannerError::Timeout).await;
@@ -99,7 +100,7 @@ async fn get_first_block<
99100
}
100101
}
101102
}
102-
};
103+
}
103104
}
104105

105106
None

0 commit comments

Comments
 (0)