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:
5
registry/cache/cache.go
vendored
5
registry/cache/cache.go
vendored
@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user