v1: deprecate v1 support

Etcd moves to 0.5 without the support of v1.
This commit is contained in:
Yicheng Qin
2014-07-02 11:17:55 -07:00
parent 8d758be3e4
commit 02ced2c2d7
36 changed files with 19 additions and 924 deletions

View File

@ -227,7 +227,7 @@ func Monitor(size int, allowDeadNum int, leaderChan chan string, all chan bool,
func getLeader(addr string) (string, error) {
resp, err := client.Get(addr + "/v1/leader")
resp, err := client.Get(addr + "/v2/leader")
if err != nil {
return "", err