diff --git a/contrib/registry/etcd/watcher.go b/contrib/registry/etcd/watcher.go index d04f4fbd7..22e63474c 100644 --- a/contrib/registry/etcd/watcher.go +++ b/contrib/registry/etcd/watcher.go @@ -29,7 +29,7 @@ func newWatcher(ctx context.Context, key, name string, client *clientv3.Client) serviceName: name, } w.ctx, w.cancel = context.WithCancel(ctx) - w.watchChan = w.watcher.Watch(w.ctx, key, clientv3.WithPrefix(), clientv3.WithRev(0)) + w.watchChan = w.watcher.Watch(w.ctx, key, clientv3.WithPrefix(), clientv3.WithRev(0), clientv3.WithKeysOnly()) err := w.watcher.RequestProgress(context.Background()) if err != nil { return nil, err