Skip to content

Commit

Permalink
Fix weird errors with weird indexers that only index 1 block
Browse files Browse the repository at this point in the history
  • Loading branch information
Sliman4 committed Jul 12, 2024
1 parent d523f1f commit 9f40811
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,7 @@ pub async fn run_indexer<

let range = prefetch_range
.clone()
.chain(first_block_to_process)
.chain(range.inspect(move |x| {
.chain(first_block_to_process.chain(range).inspect(move |x| {
current_block.store(*x, Ordering::Relaxed);
}))
.chain(postfetch_iter);
Expand Down

0 comments on commit 9f40811

Please sign in to comment.