Browse Source

tools/etcd-agent/client: fix rpc Dial

Yicheng Qin 10 years ago
parent
commit
8d3d737993
1 changed files with 1 additions and 1 deletions
  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) {
-	c, err := rpc.Dial("tcp", endpoint)
+	c, err := rpc.DialHTTP("tcp", endpoint)
 	if err != nil {
 		return nil, err
 	}