Skip to content

Commit

Permalink
change cursor update timing
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Oct 3, 2023
1 parent c458409 commit 626bab9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion accountresolver/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ func (p *Processor) processMergeBlocksFiles(ctx context.Context, cursor *Cursor,

p.stats.totalBlockProcessingDuration += time.Since(start)

cursor.slotNum = blk.Slot

nailer.Push(ctx, blk)
p.stats.totalBlockHandlingDuration += time.Since(start)
}
Expand All @@ -264,7 +266,7 @@ func (p *Processor) processMergeBlocksFiles(ctx context.Context, cursor *Cursor,
bundleReader.PushError(fmt.Errorf("pushing block to bundle reader: %w", err))
return
}
cursor.slotNum = bb.Num()

p.stats.totalBlockPushDuration += time.Since(pushStart)
}
bundleReader.Close()
Expand Down

0 comments on commit 626bab9

Please sign in to comment.