From 2cd958088824a1ea6974b1383461d03eb70e474d Mon Sep 17 00:00:00 2001 From: devopsbo3 <69951731+devopsbo3@users.noreply.github.com> Date: Fri, 10 Nov 2023 11:21:03 -0600 Subject: [PATCH] Revert "metrics: NilTimer should still run the function to be timed (#27723)" This reverts commit 5ad2a03ca1c14db5d9d285b7685f68c8a0089fa5. --- metrics/timer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics/timer.go b/metrics/timer.go index 2e1a9be47295f..a63c9dfb6c2da 100644 --- a/metrics/timer.go +++ b/metrics/timer.go @@ -123,7 +123,7 @@ func (NilTimer) Stop() {} func (NilTimer) Sum() int64 { return 0 } // Time is a no-op. -func (NilTimer) Time(f func()) { f() } +func (NilTimer) Time(func()) {} // Update is a no-op. func (NilTimer) Update(time.Duration) {}