Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
maciuszek committed Jan 13, 2025
1 parent 8eb942d commit 4a82e5c
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 @@ -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
}
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4a82e5c

Please sign in to comment.