1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-18 08:26:38 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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