From 9d8ae27f79d1788526224a7c25e97903791d0e12 Mon Sep 17 00:00:00 2001 From: Cerek Hillen Date: Tue, 20 Jun 2023 14:06:50 -0700 Subject: [PATCH] some formatting --- stats.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stats.go b/stats.go index 9f62ed3..89becdb 100644 --- a/stats.go +++ b/stats.go @@ -351,7 +351,7 @@ type statStore struct { timers *lru.Cache[string, *timer] // Gauges must not be expunged because they are client-side stateful. // We use a sync.Map instead of a cache to ensure they are kept indefinitely. - gauges sync.Map + gauges sync.Map mu sync.RWMutex statGenerators []StatGenerator @@ -392,7 +392,7 @@ func (s *statStore) Flush() { s.flushCounter(name, counter) } - s.gauges.Range(func (key any, v any) bool { + s.gauges.Range(func(key, v interface{}) bool { s.sink.FlushGauge(key.(string), v.(*gauge).Value()) return true })