This commit is contained in:
Chris Lu committed 2019-02-15 00:09:48 -08:00
1 parent 74fb237727
commit 7103c1ab7e
3 files changed
+3 -3

No files matched your search

+1 -1
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]