Просмотр исходного кода

tools/etcd-agent/client: fix rpc Dial

Yicheng Qin 11 лет назад
Родитель
Сommit
8d3d737993
1 измененных файлов с 1 добавлено и 1 удалено
  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
 	}