From 35da23fd821ab228dffb2c1718949dc261eed757 Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Sun, 27 Nov 2016 11:01:16 +0100 Subject: [PATCH] consul: start service watch as goroutine --- discovery/consul/consul.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discovery/consul/consul.go b/discovery/consul/consul.go index e81749b1c..05eac61e8 100644 --- a/discovery/consul/consul.go +++ b/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 }