Merge pull request #10582 from johncming/empty_update

clientv3/naming: ignore empty update.
This commit is contained in:
Xiang Li
2019-04-30 14:21:56 -07:00
committed by GitHub

View File

@@ -98,6 +98,8 @@ func (gw *gRPCWatcher) Next() ([]*naming.Update, error) {
case etcd.EventTypeDelete:
err = json.Unmarshal(e.PrevKv.Value, &jupdate)
jupdate.Op = naming.Delete
default:
continue
}
if err == nil {
updates = append(updates, &jupdate)