mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
...
This commit is contained in:
parent
51d3dc7f6b
commit
9cdb7f073d
@ -28,7 +28,7 @@ type Peers map[int64][]string
|
||||
|
||||
func (ps Peers) Pick(id int64) string {
|
||||
addrs := ps[id]
|
||||
return addrs[rand.Intn(len(addrs))]
|
||||
return fmt.Sprintf("http://%s/raft", addrs[rand.Intn(len(addrs))])
|
||||
}
|
||||
|
||||
var errClosed = errors.New("etcdhttp: client closed connection")
|
||||
|
Loading…
x
Reference in New Issue
Block a user