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)
|
||||
srv.watch(wctx, ch)
|
||||
go srv.watch(wctx, ch)
|
||||
|
||||
services[name] = cancel
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue