mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
clientv3/naming: ignore empty update.
This commit is contained in:
parent
7a5acb4a43
commit
cb39c97b22
@ -98,6 +98,8 @@ func (gw *gRPCWatcher) Next() ([]*naming.Update, error) {
|
|||||||
case etcd.EventTypeDelete:
|
case etcd.EventTypeDelete:
|
||||||
err = json.Unmarshal(e.PrevKv.Value, &jupdate)
|
err = json.Unmarshal(e.PrevKv.Value, &jupdate)
|
||||||
jupdate.Op = naming.Delete
|
jupdate.Op = naming.Delete
|
||||||
|
default:
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
if err == nil {
|
if err == nil {
|
||||||
updates = append(updates, &jupdate)
|
updates = append(updates, &jupdate)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user