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:
parent
48ba9f91b4
commit
f2cc86294b
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
|
// set to watched
|
||||||
c.watched[service] = true
|
c.watched[service] = true
|
||||||
|
|
||||||
// only kick it off if not running
|
go c.run(service)
|
||||||
if !c.running {
|
|
||||||
go c.run(service)
|
|
||||||
}
|
|
||||||
|
|
||||||
c.Unlock()
|
c.Unlock()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user