Skip to content

Commit

Permalink
fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stefans-elastic committed Dec 27, 2024
1 parent 3cef86a commit b673cd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metricbeat/module/mongodb/collstats/collstats.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (m *Metricset) Fetch(reporter mb.ReporterV2) error {
}

wg.Add(1)
go func(eventReporter mb.ReporterV2, mongoClient *mongo.Client) {
go func(eventReporter mb.ReporterV2, mongoClient *mongo.Client, group string) {
defer wg.Done()

names, err := splitKey(group)
Expand All @@ -137,7 +137,7 @@ func (m *Metricset) Fetch(reporter mb.ReporterV2) error {
eventReporter.Event(mb.Event{
MetricSetFields: event,
})
}(reporter, client)
}(reporter, client, group)
}

wg.Wait()
Expand Down

0 comments on commit b673cd9

Please sign in to comment.