Skip to content

Commit c97d4a6

Browse files
committed
fix: race indexing condition
1 parent 32d6838 commit c97d4a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/fasset-indexer-core/src/indexer/reindexing/indexer-parallel-race-population.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class EventIndexerParallelRacePopulation {
4040
await this.backIndexer.runHistoric(firstUnhandledBlockBack, endblock - 1)
4141
}
4242
firstUnhandledBlockBack = await this.backIndexer.firstUnhandledBlock()
43-
if (firstUnhandledBlockBack == firstUnhandledBlockFront) {
43+
if (firstUnhandledBlockBack >= firstUnhandledBlockFront) {
4444
await setVar(this.frontIndexer.context.orm.em.fork(), this.updateSynced, 'true')
4545
return this.indexer
4646
}

0 commit comments

Comments
 (0)