This commit is contained in:
Chris Lu
2019-02-15 00:09:48 -08:00
parent 74fb237727
commit 7103c1ab7e
3 changed files with 3 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ func isPeersChanged(dir string, self string, peers []string) (oldPeers []string,
func isTheFirstOne(self string, peers []string) bool {
sort.Strings(peers)
if len(peers)<=0{
if len(peers) <= 0 {
return true
}
return self == peers[0]