Skip to content

Commit

Permalink
some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
crockeo committed Jun 21, 2023
1 parent a538625 commit 09cd973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
})
Expand Down

0 comments on commit 09cd973

Please sign in to comment.