From 810ed74b45b3db1c38f1292c8a495d88b497a506 Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Wed, 27 Sep 2023 13:30:00 +1000 Subject: [PATCH] refactor(checkpoint_iterator): simplify getLookAheads loop --- 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 {