mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 18:00:46 +00:00
metrics: NilTimer should still run the function to be timed (#27723)
This commit is contained in:
parent
e524043a3b
commit
51e49a869d
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ func (NilTimer) Stop() {}
|
||||||
func (NilTimer) Sum() int64 { return 0 }
|
func (NilTimer) Sum() int64 { return 0 }
|
||||||
|
|
||||||
// Time is a no-op.
|
// Time is a no-op.
|
||||||
func (NilTimer) Time(func()) {}
|
func (NilTimer) Time(f func()) { f() }
|
||||||
|
|
||||||
// Update is a no-op.
|
// Update is a no-op.
|
||||||
func (NilTimer) Update(time.Duration) {}
|
func (NilTimer) Update(time.Duration) {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue