go/journal2clickhouse: fix the Classic Bug

This commit is contained in:
Luke Granger-Brown 2022-01-01 15:31:47 +00:00
parent 730d057e18
commit 7e848a2622

View file

@ -470,6 +470,7 @@ func main() {
}() }()
for hostname, remoteAddr := range scrapeHosts { for hostname, remoteAddr := range scrapeHosts {
hostname, remoteAddr := hostname, remoteAddr
wg.Add(1) wg.Add(1)
fetchWG.Add(1) fetchWG.Add(1)
go func() { go func() {