return wg pointer

This commit is contained in:
2025-10-23 12:41:34 +02:00
parent 62f5b51be8
commit ad80542619

View File

@@ -33,7 +33,7 @@ func NewExporter(conf *Config, alloc *Alloc, metrics *Metrics) *Exporter {
} }
// starts the primary go-routine, which will run the io checks for ever // starts the primary go-routine, which will run the io checks for ever
func (exp *Exporter) RunIOchecks() sync.WaitGroup { func (exp *Exporter) RunIOchecks() *sync.WaitGroup {
var wg sync.WaitGroup var wg sync.WaitGroup
wg.Add(1) wg.Add(1)
@@ -65,7 +65,7 @@ func (exp *Exporter) RunIOchecks() sync.WaitGroup {
} }
}() }()
return wg return &wg
} }
// call an io measurement and collect time needed // call an io measurement and collect time needed