Browse Source

integration: don't nest proxies in cluster_proxy mode

Anthony Romano 9 years ago
parent
commit
3489fa82fb
1 changed files with 3 additions and 4 deletions
  1. 3 4
      integration/cluster_proxy.go

+ 3 - 4
integration/cluster_proxy.go

@@ -52,9 +52,8 @@ func newClientV3(cfg clientv3.Config) (*clientv3.Client, error) {
 	if err != nil {
 	if err != nil {
 		return nil, err
 		return nil, err
 	}
 	}
-
-	toGRPC(c)
-	c.KV = clientv3.NewKVFromKVClient(grpcproxy.KvServerToKvClient(grpcproxy.NewKvProxy(c)))
-	c.Watcher = clientv3.NewWatchFromWatchClient(grpcproxy.WatchServerToWatchClient(grpcproxy.NewWatchProxy(c)))
+	rpc := toGRPC(c)
+	c.KV = clientv3.NewKVFromKVClient(rpc.KV)
+	c.Watcher = clientv3.NewWatchFromWatchClient(rpc.Watch)
 	return c, nil
 	return c, nil
 }
 }