Unverified Commit 34d50721 authored by Ömer Faruk Irmak's avatar Ömer Faruk Irmak Committed by GitHub

metrics: NilResettingTimer.Time should execute the timed function (#27724)

parent 47b9f1b4
......@@ -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) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment