This commit is contained in:
lubaoquan
2019-09-29 10:27:38 +08:00
parent 9ec27392de
commit d5e962c4a8
4 changed files with 75 additions and 26 deletions

View File

@@ -163,7 +163,7 @@ func (cw *consulWatcher) serviceHandler(idx uint64, data interface{}) {
// it's an update rather than creation
if len(nodes) > 0 {
delService := oldService
delService := registry.CopyOne(oldService)
delService.Nodes = nodes
cw.next <- &registry.Result{Action: "delete", Service: delService}
}