diff --git a/go/journal2clickhouse/journal2clickhouse.go b/go/journal2clickhouse/journal2clickhouse.go index fd117f89bb..6e5606babc 100644 --- a/go/journal2clickhouse/journal2clickhouse.go +++ b/go/journal2clickhouse/journal2clickhouse.go @@ -470,6 +470,7 @@ func main() { }() for hostname, remoteAddr := range scrapeHosts { + hostname, remoteAddr := hostname, remoteAddr wg.Add(1) fetchWG.Add(1) go func() {