From b5ff94b1c19090372d45e15754e086d7b7ede18a Mon Sep 17 00:00:00 2001 From: JuArce <52429267+JuArce@users.noreply.github.com> Date: Tue, 27 Aug 2024 15:59:33 -0300 Subject: [PATCH] fix: use correct types --- aggregator/internal/pkg/subscriber.go | 2 +- operator/pkg/operator.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aggregator/internal/pkg/subscriber.go b/aggregator/internal/pkg/subscriber.go index 43d799709..3ae5998e6 100644 --- a/aggregator/internal/pkg/subscriber.go +++ b/aggregator/internal/pkg/subscriber.go @@ -10,7 +10,7 @@ func (agg *Aggregator) SubscribeToNewTasks() error { return err } - var switchBlockNumber = uint64(2_268_375) // 2_268_375 is the block at sep 3th 15:00 + var switchBlockNumber = uint32(2_268_375) // 2_268_375 is the block at sep 3th 15:00 for { select { diff --git a/operator/pkg/operator.go b/operator/pkg/operator.go index c55e356b6..923125a2e 100644 --- a/operator/pkg/operator.go +++ b/operator/pkg/operator.go @@ -149,7 +149,7 @@ func (o *Operator) Start(ctx context.Context) error { metricsErrChan = make(chan error, 1) } - var switchBlockNumber = uint64(2_268_375) // 2_268_375 is the block at sep 3th 15:00 + var switchBlockNumber = uint32(2_268_375) // 2_268_375 is the block at sep 3th 15:00 for { select {