mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-02 08:31:11 -08:00
Merge pull request #2223 from prometheus/consulfix
consul: start service watch as goroutine
This commit is contained in:
commit
d95e61d418
|
@ -197,7 +197,7 @@ func (cd *Discovery) Run(ctx context.Context, ch chan<- []*config.TargetGroup) {
|
||||||
}
|
}
|
||||||
|
|
||||||
wctx, cancel := context.WithCancel(ctx)
|
wctx, cancel := context.WithCancel(ctx)
|
||||||
srv.watch(wctx, ch)
|
go srv.watch(wctx, ch)
|
||||||
|
|
||||||
services[name] = cancel
|
services[name] = cancel
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue