From ad805426192f410b21519519baf154a1e0528f40 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Thu, 23 Oct 2025 12:41:34 +0200 Subject: [PATCH] return wg pointer --- cmd/exporter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/exporter.go b/cmd/exporter.go index 918eeb4..90d49c6 100644 --- a/cmd/exporter.go +++ b/cmd/exporter.go @@ -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 -func (exp *Exporter) RunIOchecks() sync.WaitGroup { +func (exp *Exporter) RunIOchecks() *sync.WaitGroup { var wg sync.WaitGroup 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