diff --git a/go/l2geth-exporter/main.go b/go/l2geth-exporter/main.go index 99084b69ac3629c58c64d3aedbf6e7084c82e5a5..212291d33ced88a765174a2ec6fd12c1bbc62b46 100644 --- a/go/l2geth-exporter/main.go +++ b/go/l2geth-exporter/main.go @@ -82,7 +82,7 @@ func getCTCTotalElements(address string, client *ethclient.Client) { ctcTotalElements.WithLabelValues( "latest").Set(totalElementsFloat) log.Info("ctc updated", "ctcTotalElements", totalElementsFloat) - ctx.Done() + cancel() <-ticker.C }