mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
metrics: NilResettingTimer.Time should execute the timed function (#27724)
This commit is contained in:
parent
51e49a869d
commit
d43f6c0cb0
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ func (NilResettingTimer) Values() []int64 { return nil }
|
|||
func (NilResettingTimer) Snapshot() ResettingTimer { return NilResettingTimer{} }
|
||||
|
||||
// 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