Skip to content

Commit

Permalink
Revert "metrics: NilResettingTimer.Time should execute the timed func…
Browse files Browse the repository at this point in the history
…tion (ethereum#27724)"

This reverts commit 041d64c.
  • Loading branch information
devopsbo3 committed Nov 10, 2023
1 parent 4b3d144 commit c4c1644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/resetting_timer.go
Expand Up @@ -66,7 +66,7 @@ func (NilResettingTimer) Snapshot() ResettingTimer {
}

// Time is a no-op.
func (NilResettingTimer) Time(f func()) { f() }
func (NilResettingTimer) Time(func()) {}

// Update is a no-op.
func (NilResettingTimer) Update(time.Duration) {}
Expand Down

0 comments on commit c4c1644

Please sign in to comment.