v1: deprecate v1 support
Etcd moves to 0.5 without the support of v1.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user