From 5cc4223653166900a5365dd494bf164092947303 Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Wed, 27 Sep 2023 13:44:51 +1000 Subject: [PATCH] refactor(checkpoint_iterator): simplify getLookAheads loop (#209) --- pkg/cannon/iterator/checkpoint_iterator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cannon/iterator/checkpoint_iterator.go b/pkg/cannon/iterator/checkpoint_iterator.go index 8e9f4e2a..231ec83e 100644 --- a/pkg/cannon/iterator/checkpoint_iterator.go +++ b/pkg/cannon/iterator/checkpoint_iterator.go @@ -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 {