Commit 5a7f46be authored by jingbo.wang's avatar jingbo.wang

修复服务上线 node critical 报错

parent 5fb1d776
...@@ -68,6 +68,10 @@ type watch struct{} ...@@ -68,6 +68,10 @@ type watch struct{}
func (w watch) DeleteService(serviceName string) { func (w watch) DeleteService(serviceName string) {
//pass //pass
servicesStatusLock.Lock()
defer servicesStatusLock.Unlock()
delete(servicesStatus, serviceName)
} }
func serviceStatus(service *registry.Service) bool { func serviceStatus(service *registry.Service) bool {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment