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 5dd8757
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 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 @@ -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: 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
Expand Down

0 comments on commit 5dd8757

Please sign in to comment.