Skip to content

Commit

Permalink
Fix range variable c captured by func literal
Browse files Browse the repository at this point in the history
  • Loading branch information
mjtrangoni authored and Mario Trangoni committed May 16, 2017
1 parent 518f441 commit a72980f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lustre_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (l LustreSource) Collect(ch chan<- prometheus.Metric) {
wg := sync.WaitGroup{}
wg.Add(len(l.sourceList))
for name, c := range l.sourceList {
go func(name string, s sources.LustreSource) {
go func(name string, c sources.LustreSource) {
collectFromSource(name, c, ch)
wg.Done()
}(name, c)
Expand Down

0 comments on commit a72980f

Please # to comment.