Blake Mizerany 11 years ago
parent
commit
9cdb7f073d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      etcdserver2/etcdhttp/http.go

+ 1 - 1
etcdserver2/etcdhttp/http.go

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