Skip to content

Commit

Permalink
Address off by one issues
Browse files Browse the repository at this point in the history
  • Loading branch information
darunrs committed Aug 6, 2024
1 parent 8ef52d0 commit bb28461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block-streamer/src/block_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl BlockStream {
let stalled_timeout_seconds = 120;

async move {
let mut last_processed_block = Some(start_block_height);
let mut last_processed_block = Some(start_block_height - 1);
loop {
tokio::time::sleep(std::time::Duration::from_secs(stalled_timeout_seconds))
.await;
Expand Down Expand Up @@ -352,7 +352,7 @@ pub(crate) async fn start_block_stream(
.context("Failed while fetching and streaming bitmap indexer blocks")?;

let last_indexed_near_lake_block = process_near_lake_blocks(
last_bitmap_indexer_block,
last_bitmap_indexer_block + 1,
lake_s3_client,
lake_prefetch_size,
redis,
Expand Down

0 comments on commit bb28461

Please sign in to comment.