Explorar o código

tools/etcd-agent/client: fix rpc Dial

Yicheng Qin %!s(int64=11) %!d(string=hai) anos
pai
achega
8d3d737993
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/functional-tester/etcd-agent/client/client.go

+ 1 - 1
tools/functional-tester/etcd-agent/client/client.go

@@ -36,7 +36,7 @@ type agent struct {
 }
 }
 
 
 func NewAgent(endpoint string) (Agent, error) {
 func NewAgent(endpoint string) (Agent, error) {
-	c, err := rpc.Dial("tcp", endpoint)
+	c, err := rpc.DialHTTP("tcp", endpoint)
 	if err != nil {
 	if err != nil {
 		return nil, err
 		return nil, err
 	}
 	}