mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
chore: gofmt go files
This commit is contained in:
parent
fa95ca0aa8
commit
adf4acf947
@ -366,7 +366,7 @@ func (s *PeerServer) startAsFollower(cluster []string, retryTimes int) error {
|
|||||||
if ok {
|
if ok {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if i == retryTimes - 1 {
|
if i == retryTimes-1 {
|
||||||
return fmt.Errorf("Cannot join the cluster via given peers after %x retries", s.Config.RetryTimes)
|
return fmt.Errorf("Cannot join the cluster via given peers after %x retries", s.Config.RetryTimes)
|
||||||
}
|
}
|
||||||
log.Warnf("%v is unable to join the cluster using any of the peers %v at %dth time. Retrying in %.1f seconds", s.Config.Name, cluster, i, s.Config.RetryInterval)
|
log.Warnf("%v is unable to join the cluster using any of the peers %v at %dth time. Retrying in %.1f seconds", s.Config.Name, cluster, i, s.Config.RetryInterval)
|
||||||
|
@ -347,7 +347,6 @@ func TestDiscoveryRestart(t *testing.T) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func assertServerNotUp(client http.Client, scheme string) error {
|
func assertServerNotUp(client http.Client, scheme string) error {
|
||||||
path := fmt.Sprintf("%s://127.0.0.1:4001/v2/keys/foo", scheme)
|
path := fmt.Sprintf("%s://127.0.0.1:4001/v2/keys/foo", scheme)
|
||||||
fields := url.Values(map[string][]string{"value": {"bar"}})
|
fields := url.Values(map[string][]string{"value": {"bar"}})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user