This commit is contained in:
lubaoquan
2019-09-30 10:36:43 +08:00
parent 9ec27392de
commit 866631df1d
2 changed files with 28 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.CopyService(oldService)
delService.Nodes = nodes
cw.next <- &registry.Result{Action: "delete", Service: delService}
}