randomize raft server startup

also some go fmt
This commit is contained in:
Chris Lu committed 2018-08-12 14:27:14 -07:00
1 parent eca4b928d2
commit 75d63db60d
6 files changed
+7 -6

No files matched your search

+1 -1
View File
@@ -132,7 +132,7 @@ func checkPeers(masterIp string, masterPort int, peers string) (masterAddress st
if !hasSelf {
peerCount += 1
}
if peerCount %2 == 0 {
if peerCount%2 == 0 {
glog.Fatalf("Only odd number of masters are supported!")
}
return