Browse Source

Merge pull request #2223 from prometheus/consulfix

consul: start service watch as goroutine
pull/2230/head
Fabian Reinartz 8 years ago committed by GitHub
parent
commit
d95e61d418
  1. 2
      discovery/consul/consul.go

2
discovery/consul/consul.go

@ -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…
Cancel
Save