Unverified Commit 13c03051 authored by Ömer Faruk Irmak's avatar Ömer Faruk Irmak Committed by GitHub

metrics: NilTimer should still run the function to be timed (#27723)

parent 60ecf48d
......@@ -123,7 +123,7 @@ func (NilTimer) Stop() {}
func (NilTimer) Sum() int64 { return 0 }
// Time is a no-op.
func (NilTimer) Time(func()) {}
func (NilTimer) Time(f func()) { f() }
// Update is a no-op.
func (NilTimer) 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