From 4a82e5c4e857f776b4c97e929a6d95509fabc033 Mon Sep 17 00:00:00 2001 From: Matthew Kuzminski Date: Mon, 13 Jan 2025 14:26:49 -0500 Subject: [PATCH] fix comment --- stats.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stats.go b/stats.go index 6453214..7ef15c8 100644 --- a/stats.go +++ b/stats.go @@ -216,7 +216,7 @@ type StatGenerator interface { func NewStore(sink Sink, _ bool) Store { return &statStore{ sink: sink, - conf: GetSettings(), // todo: right now the enviornmnet is being loaded in multiple places and this is inefficient + conf: GetSettings(), // todo: right now the environment is being loaded in multiple places and can be made more efficient } } @@ -406,7 +406,7 @@ func (ts *timespan) CompleteWithDuration(value time.Duration) { type statStore struct { counters sync.Map gauges sync.Map - timers sync.Map // todo: idea how memory was managed here before did we just expect these maps to just be replaced after it's filled? + 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? mu sync.RWMutex statGenerators []StatGenerator