Skip to content

Commit

Permalink
fix immediate EOF in dev mode with start=0, unbounded
Browse files Browse the repository at this point in the history
  • Loading branch information
sduchesneau committed Oct 24, 2023
1 parent 9daeae8 commit c98b765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orchestrator/plan/requestplan.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ func BuildTier1RequestPlan(productionMode bool, segmentInterval uint64, graphIni
plan := &RequestPlan{
segmentInterval: segmentInterval,
}
if linearHandoffBlock != exclusiveEndBlock {
// assumes exclusiveEndBlock isn't 0, because linearHandoffBlock cannot be 0
if linearHandoffBlock != exclusiveEndBlock ||
linearHandoffBlock == 0 { // ex: unbound dev mode
plan.LinearPipeline = block.NewRange(linearHandoffBlock, exclusiveEndBlock)
}
if resolvedStartBlock == linearHandoffBlock && graphInitBlock == resolvedStartBlock {
Expand Down

0 comments on commit c98b765

Please sign in to comment.