tools/etcd-agent/client: fix rpc Dial

This commit is contained in:
Yicheng Qin 2015-03-04 17:16:25 -08:00
parent 061baad611
commit 8d3d737993

View File

@ -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
}