Merge pull request #2223 from prometheus/consulfix

consul: start service watch as goroutine
This commit is contained in:
Fabian Reinartz 2016-11-28 08:00:41 +01:00 committed by GitHub
commit d95e61d418
1 changed files with 1 additions and 1 deletions

View File

@ -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
}