From 9a8b85d4a4dcbb75c1631f5a130c37e900280357 Mon Sep 17 00:00:00 2001 From: Matthew Kuzminski Date: Mon, 13 Jan 2025 14:43:26 -0500 Subject: [PATCH] fix comment --- stats.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stats.go b/stats.go index 7ef15c8..d75c9cc 100644 --- a/stats.go +++ b/stats.go @@ -404,9 +404,10 @@ func (ts *timespan) CompleteWithDuration(value time.Duration) { } type statStore struct { + // todo: no idea how memory was managed here, when is are the entries ever gc'd? counters sync.Map gauges sync.Map - timers sync.Map // todo: no idea how memory was managed here before did we just expect these maps to just be replaced after it's filled? + timers sync.Map mu sync.RWMutex statGenerators []StatGenerator