Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouop0 committed Sep 11, 2024
1 parent 3985651 commit 509f7d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/handler/latestBlockNumber.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"
"time"

"github.com/pkg/errors"

"github.com/optimism-java/dispute-explorer/internal/svc"
"github.com/optimism-java/dispute-explorer/pkg/log"
"github.com/pkg/errors"
"github.com/spf13/cast"
)

func LatestBlackNumber(ctx *svc.ServiceContext) {
Expand All @@ -19,7 +19,7 @@ func LatestBlackNumber(ctx *svc.ServiceContext) {
continue
}

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

0 comments on commit 509f7d9

Please sign in to comment.