mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "metrics: NilResettingTimer.Time should execute the timed function (#27724)"
This reverts commit 041d64c8a0.
This commit is contained in:
parent
4bcbcc5947
commit
cc61ef3b6f
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue