Skip to content

Commit 5ded7dc

Browse files
committed
minor change
1 parent a6a7a71 commit 5ded7dc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/committer/blockparserroutine.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ func channelParseBlocksFromFile() error {
6767
}
6868

6969
byteSize, blockData, err := ParseParquetRow(row[0])
70+
71+
// skip to nextBlockNumber. happens on the first run.
72+
if blockData.Block.Number.Uint64() < nextBlockNumber {
73+
continue
74+
}
75+
7076
acquireMemoryPermit(byteSize)
7177

7278
if err != nil {

0 commit comments

Comments
 (0)