Skip to content

Commit

Permalink
Merge pull request #42 from wreulicke/feature/reduce-struct-size
Browse files Browse the repository at this point in the history
Reduce struct size in metric_registry
  • Loading branch information
platinummonkey committed Sep 15, 2020
2 parents 06a768a + 8d85096 commit 539a1f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions metric_registry/datadog/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ type MetricRegistry struct {
registeredGauges map[string]*metricPoller
registeredListeners map[string]*metricSampleListener

mu sync.Mutex
wg sync.WaitGroup

started bool
stopper chan bool
mu sync.Mutex
wg sync.WaitGroup
}

// NewMetricRegistry will create a new Datadog MetricRegistry.
Expand Down
5 changes: 3 additions & 2 deletions metric_registry/gometrics/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ type MetricRegistry struct {
registeredGauges map[string]*gometricsMetricPoller
registeredListeners map[string]*metricSampleListener

mu sync.Mutex
wg sync.WaitGroup

started bool
stopper chan bool
mu sync.Mutex
wg sync.WaitGroup
}

// NewGoMetricsMetricRegistry will create a new Datadog MetricRegistry.
Expand Down

0 comments on commit 539a1f9

Please sign in to comment.