Skip to content

Commit 49b2e3f

Browse files
committed
fix: lint
1 parent 0732859 commit 49b2e3f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

rollup/rollup_sync_service/rollup_sync_service.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const (
4545
)
4646

4747
var (
48-
finalizedBlockGauge = metrics.NewRegisteredGauge("chain/head/finalized", nil)
48+
finalizedBlockGauge = metrics.NewRegisteredGauge("chain/head/finalized", nil)
4949
ErrShouldResetSyncHeight = errors.New("ErrShouldResetSyncHeight")
5050
)
5151

@@ -139,13 +139,11 @@ func (s *RollupSyncService) Start() {
139139

140140
log.Info("Starting rollup event sync background service", "latest processed block", s.callDataBlobSource.L1Height())
141141

142-
143-
144142
finalizedBlockHeightPtr := rawdb.ReadFinalizedL2BlockNumber(s.db)
145143
if finalizedBlockHeightPtr != nil {
146144
finalizedBlockGauge.Update(int64(*finalizedBlockHeightPtr))
147145
}
148-
146+
149147
go func() {
150148
syncTicker := time.NewTicker(defaultSyncInterval)
151149
defer syncTicker.Stop()

0 commit comments

Comments
 (0)