diff --git a/scrape/scrape.go b/scrape/scrape.go index adf33eaff..eb0294c85 100644 --- a/scrape/scrape.go +++ b/scrape/scrape.go @@ -373,7 +373,7 @@ func (sp *scrapePool) reload(cfg *config.ScrapeConfig) error { wg.Done() newLoop.setForcedError(forcedErr) - go newLoop.run(interval, timeout, nil) + newLoop.run(interval, timeout, nil) }(oldLoop, newLoop) sp.loops[fp] = newLoop @@ -435,7 +435,6 @@ func (sp *scrapePool) sync(targets []*Target) { ) for _, t := range targets { - t := t hash := t.hash() if _, ok := sp.activeTargets[hash]; !ok {