Skip to content

Commit b15fb69

Browse files
committed
return None on unsuccessful stream
1 parent 9232c55 commit b15fb69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/block_range_scanner/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ pub(crate) async fn stream_block_range<N: Network>(
277277
};
278278

279279
if !sender.try_stream(next_start_block..=batch_end_num).await {
280-
return Some(batch_end);
280+
return None; // channel closed
281281
}
282282

283283
batch_count += 1;

0 commit comments

Comments
 (0)