release-2.0
Blake Mizerany 2014-09-02 13:57:34 -07:00 committed by Yicheng Qin
parent 51d3dc7f6b
commit 9cdb7f073d
1 changed files with 1 additions and 1 deletions

View File

@ -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")