1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-24 22:26:54 +02:00

Fix zk watchDir (#2102)

Signed-off-by: Goober <chenhao86899@gmail.com>
This commit is contained in:
Goober
2021-01-06 01:32:17 +08:00
committed by GitHub
parent 20b5755788
commit bf4ab679e1
2 changed files with 54 additions and 59 deletions

View File

@ -305,6 +305,12 @@ func (c *cache) update(res *registry.Result) {
// save
c.set(service.Name, srvs)
case "override":
if service == nil {
return
}
c.del(service.Name)
}
}