Skip to content

Commit adfa0b0

Browse files
Update comment
Co-authored-by: Krishnanand V P <[email protected]>
1 parent 6cde014 commit adfa0b0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

core/src/subgraph/instance_manager.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)