From f2cc86294b4531f39bad801afecda597de050c69 Mon Sep 17 00:00:00 2001 From: Scukerman Date: Fri, 25 Nov 2022 00:23:02 +0100 Subject: [PATCH] fix(registry/cache): start watcher loop for other services (#2600) --- registry/cache/cache.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/registry/cache/cache.go b/registry/cache/cache.go index 378505f8..4bc588e4 100644 --- a/registry/cache/cache.go +++ b/registry/cache/cache.go @@ -178,10 +178,7 @@ func (c *cache) get(service string) ([]*registry.Service, error) { // set to watched c.watched[service] = true - // only kick it off if not running - if !c.running { - go c.run(service) - } + go c.run(service) c.Unlock() }