Skip to content

Commit

Permalink
(NOBIDS) eth1indexer: improve loop-sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
guybrush committed Aug 12, 2024
1 parent b8057ae commit 79e839f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/eth1indexer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,15 +390,14 @@ func main() {
}

func ImportEnsUpdatesLoop(bt *db.Bigtable, client *rpc.ErigonClient, batchSize int64) {
time.Sleep(time.Second * 5)
for {
time.Sleep(time.Second * 5)
err := bt.ImportEnsUpdates(client.GetNativeClient(), batchSize)
if err != nil {
logrus.WithError(err).Errorf("error importing ens updates")
} else {
services.ReportStatus("ensIndexer", "Running", nil)
}
time.Sleep(time.Second * 5)
}
}

Expand Down

0 comments on commit 79e839f

Please sign in to comment.