File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -332,12 +332,11 @@ impl<S: SubgraphStore> SubgraphInstanceManager<S> {
332332 . collect ( ) ;
333333
334334 // We can set `max_end_block` to the maximum of `end_blocks` and stop the subgraph
335- // at that point only when there are no dynamic data sources present and offchain
336- // data sources exist. This is because:
335+ // only when there are no dynamic data sources and no offchain data sources present. This is because:
337336 // - Dynamic data sources do not have a defined `end_block`, so we can't determine
338337 // when to stop processing them.
339- // - Offchain data sources might still require processing beyond the end block of
340- // onchain data sources, necessitating the continuation of the subgraph .
338+ // - Offchain data sources might require processing beyond the end block of
339+ // onchain data sources, so the subgraph needs to continue .
341340 let max_end_block: Option < BlockNumber > = if data_sources. len ( ) == end_blocks. len ( ) {
342341 end_blocks. iter ( ) . max ( ) . cloned ( )
343342 } else {
You can’t perform that action at this time.
0 commit comments