Skip to content

Commit

Permalink
fix off by one error in logic
Browse files Browse the repository at this point in the history
This would only sync up to the last block - 1, instead of the last
block.
  • Loading branch information
cronokirby committed Nov 1, 2024
1 parent 77dc125 commit 21e09de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/util/cometindex/src/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async fn catchup(
let state_cp = state.clone();
tasks.spawn(async move {
let mut height = lowest_index_height.next();
while height < src_height {
while height <= src_height {
let first = height;
let (last, next_height) = first.advance(DEFAULT_BATCH_SIZE, src_height);
height = next_height;
Expand Down

0 comments on commit 21e09de

Please sign in to comment.