From 12899330fcb854d9190b93a694bac0ff3f702ef9 Mon Sep 17 00:00:00 2001 From: Aaron Chen Date: Tue, 26 Mar 2024 23:25:38 +0800 Subject: [PATCH] metrics: fix mismatched name in UpdateIfGt --- metrics/gauge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics/gauge.go b/metrics/gauge.go index 5933df3107..6d10bbf856 100644 --- a/metrics/gauge.go +++ b/metrics/gauge.go @@ -74,7 +74,7 @@ func (g *StandardGauge) Update(v int64) { g.value.Store(v) } -// Update updates the gauge's value if v is larger then the current value. +// UpdateIfGt updates the gauge's value if v is larger then the current value. func (g *StandardGauge) UpdateIfGt(v int64) { for { exist := g.value.Load()