forked from cerc-io/plugeth
metrics: NilResettingTimer.Time should execute the timed function (#27724)
This commit is contained in:
parent
47b9f1b4ae
commit
34d5072159
@ -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 New Issue
Block a user