etcdmain: fix shadowed variables

Fix for https://github.com/coreos/etcd/issues/3954.
This commit is contained in:
Gyu-Ho Lee 2015-12-12 05:12:05 -08:00
parent a4de207d53
commit c48b0a5e18

View File

@ -363,7 +363,7 @@ func startProxy(cfg *config) error {
plog.Warningf("discovery token ignored since the proxy has already been initialized. Valid cluster file found at %q", clusterfile)
}
urls := struct{ PeerURLs []string }{}
err := json.Unmarshal(b, &urls)
err = json.Unmarshal(b, &urls)
if err != nil {
return err
}