Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
fix (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgrakkurt authored Feb 4, 2023
1 parent 5373393 commit b882643
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Binary file added .DS_Store
Binary file not shown.
12 changes: 4 additions & 8 deletions ingester/src/parquet_src/ver0_0_39.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,10 @@ fn stream_batches(

let (mut blocks, txs, logs) = futures::future::try_join3(block_fut, tx_fut, log_fut).await?;

let mut block_range = Default::default();

for &num in blocks.keys() {
block_range += BlockRange {
from: num,
to: num + 1,
};
}
let block_range = BlockRange {
from: *blocks.first_key_value().unwrap().0,
to: blocks.last_key_value().unwrap().0 + 1,
};

for tx in txs {
blocks.get_mut(&tx.block_number.0).unwrap().transactions.push(tx);
Expand Down

0 comments on commit b882643

Please sign in to comment.