mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
metrics: NilResettingTimer.Time should execute the timed function (#27724)
This commit is contained in:
parent
098c798171
commit
041d64c8a0
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(func()) {}
|
||||
func (NilResettingTimer) Time(f func()) { f() }
|
||||
|
||||
// Update is a no-op.
|
||||
func (NilResettingTimer) Update(time.Duration) {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue