Skip to content

Commit

Permalink
fix: ignore records before start timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus committed Oct 18, 2024
1 parent 318996f commit 88ae09d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ async fn run() -> anyhow::Result<()> {
receiver,
fees_grt,
} => {
if aggregation_timestamp < start_timestamp {
continue;
}
let key = IndexerFeesKey { signer, receiver };
let agg = aggregations.entry(aggregation_timestamp).or_default();
*agg.indexer_fees.entry(key).or_default() += fees_grt;
Expand Down

0 comments on commit 88ae09d

Please sign in to comment.