1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-07-06 22:35:51 +02:00

fix(registry/cache): start watcher loop for other services (#2600)

This commit is contained in:
Scukerman
2022-11-25 00:23:02 +01:00
committed by GitHub
parent 48ba9f91b4
commit f2cc86294b

View File

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