Skip to content

Commit f85b933

Browse files
committed
Update the comment
1 parent e95b9ee commit f85b933

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

codegenerator/cli/templates/static/codegen/src/globalState/GlobalState.res

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,10 +1036,14 @@ let injectedTaskReducer = (
10361036
//pre registration is done, we've hit the multichain reorg threshold
10371037
//on the last batch and there are no items on the queue
10381038
dispatchAction(StartIndexingAfterPreRegister)
1039-
| {val: None} if state.chainManager->ChainManager.isFetchingAtHead || !(state.chainManager->ChainManager.isActivelyIndexing) =>
1040-
//pre registration is done, there are no items on the queue and we are fetching at head or reached the endBlock
1039+
| {val: None} if state.chainManager->ChainManager.isFetchingAtHead =>
1040+
//pre registration is done, there are no items on the queue and we are fetching at head
10411041
//this case is only hit if we are indexing chains with no reorg threshold
10421042
dispatchAction(StartIndexingAfterPreRegister)
1043+
| {val: None} if !(state.chainManager->ChainManager.isActivelyIndexing) =>
1044+
//pre registration is done, there are no items on the queue
1045+
//this case is hit when there's a chain with an endBlock
1046+
dispatchAction(StartIndexingAfterPreRegister)
10431047
| _ => () //Nothing to process and pre registration is not done
10441048
}
10451049
}

0 commit comments

Comments
 (0)