Skip to content

Commit

Permalink
fix: update request block number interval
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouop0 committed Oct 23, 2024
1 parent 60e4d17 commit fdde37d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/handler/latestBlockNumber.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ func LatestBlackNumber(ctx *svc.ServiceContext) {
latest, err := ctx.L1RPC.BlockNumber(context.Background())
if err != nil {
log.Errorf("[Handler.LatestBlackNumber] Syncing block by number error: %s\n", errors.WithStack(err))
time.Sleep(3 * time.Second)
time.Sleep(12 * time.Second)
continue
}

ctx.LatestBlockNumber = cast.ToInt64(latest)
log.Infof("[Handle.LatestBlackNumber] Syncing latest block number: %d \n", latest)
time.Sleep(3 * time.Second)
time.Sleep(12 * time.Second)
}
}

0 comments on commit fdde37d

Please sign in to comment.