mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
consul: start service watch as goroutine
This commit is contained in:
parent
ecad074e46
commit
35da23fd82
|
@ -197,7 +197,7 @@ func (cd *Discovery) Run(ctx context.Context, ch chan<- []*config.TargetGroup) {
|
|||
}
|
||||
|
||||
wctx, cancel := context.WithCancel(ctx)
|
||||
srv.watch(wctx, ch)
|
||||
go srv.watch(wctx, ch)
|
||||
|
||||
services[name] = cancel
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue