Skip to content

Commit

Permalink
refactor(checkpoint_iterator): simplify getLookAheads loop (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm authored Sep 27, 2023
1 parent 565619e commit 5cc4223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cannon/iterator/checkpoint_iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (c *CheckpointIterator) getLookAheads(ctx context.Context, location *xatu.C

lookAheads := make([]*xatu.CannonLocation, 0)

for _, i := range []int{1, 2, 3} {
for _, i := range []int{1} {
lookAheadEpoch := epoch + phase0.Epoch(i)

if lookAheadEpoch > latestCheckpoint.Epoch {
Expand Down

0 comments on commit 5cc4223

Please sign in to comment.