Skip to content

Commit

Permalink
fix: fix panic in test
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Jan 8, 2024
1 parent 04cd1d6 commit dc9ba3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sync/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ func (m *metrics) observeNewSubjectiveHead(ctx context.Context, height int64, ti
if time.Since(m.headerReceived) > m.headersThreshold {
m.laggingHeadersStart.Add(ctx, 1)
}
m.prevHeader = timestamp
m.headerReceived = time.Now()
})
m.prevHeader = timestamp
m.headerReceived = time.Now()
}

func (m *metrics) observe(ctx context.Context, observeFn func(context.Context)) {
Expand Down

0 comments on commit dc9ba3d

Please sign in to comment.