mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
tools/etcd-agent/client: fix rpc Dial
This commit is contained in:
parent
061baad611
commit
8d3d737993
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user