chore: gofmt go files

This commit is contained in:
Yicheng Qin
2014-04-15 09:42:25 -07:00
parent fa95ca0aa8
commit adf4acf947
2 changed files with 1 additions and 2 deletions

View File

@@ -366,7 +366,7 @@ func (s *PeerServer) startAsFollower(cluster []string, retryTimes int) error {
if ok {
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)
}
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)