diff --git a/clientv3/naming/grpc.go b/clientv3/naming/grpc.go index c74659df2..7eed84bfb 100644 --- a/clientv3/naming/grpc.go +++ b/clientv3/naming/grpc.go @@ -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)