Skip to content

Commit

Permalink
fix: Ensure while loop terminates with error instead of skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
darunrs committed Jul 16, 2024
1 parent 9aa9500 commit 6a2bcf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block-streamer/src/block_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ async fn process_bitmap_indexer_blocks(

let mut last_published_block_height: u64 = start_block_height;

while let Some(Ok(block_height)) = matching_block_heights.next().await {
while let Some(block_height) = matching_block_heights.next().await.transpose()? {
redis
.publish_block(indexer, redis_stream.clone(), block_height, MAX_STREAM_SIZE)
.await?;
Expand Down

0 comments on commit 6a2bcf8

Please sign in to comment.