diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-08-12 14:27:14 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-08-12 14:27:14 -0700 |
| commit | 75d63db60d1677f2e3350c3ee2b9dbecf931ec1a (patch) | |
| tree | 939d170c6c2e076395b219fcbd91eac0a743c71e /weed/command/master.go | |
| parent | eca4b928d2b14fa940233eba3458df52077a9ede (diff) | |
| download | seaweedfs-75d63db60d1677f2e3350c3ee2b9dbecf931ec1a.tar.xz seaweedfs-75d63db60d1677f2e3350c3ee2b9dbecf931ec1a.zip | |
randomize raft server startup
also some go fmt
Diffstat (limited to 'weed/command/master.go')
| -rw-r--r-- | weed/command/master.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/master.go b/weed/command/master.go index ac5902b60..34f467bd2 100644 --- a/weed/command/master.go +++ b/weed/command/master.go @@ -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 |
