Ver Fonte

tools/etcd-agent/client: fix rpc Dial

Yicheng Qin há 11 anos atrás
pai
commit
8d3d737993
1 ficheiros alterados com 1 adições e 1 exclusões
  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
 	}