fix raft_server.go isPeersChanged bug
This commit is contained in:
@@ -144,7 +144,7 @@ func isPeersChanged(dir string, self string, peers []string) (oldPeers []string,
|
|||||||
sort.Strings(peers)
|
sort.Strings(peers)
|
||||||
sort.Strings(oldPeers)
|
sort.Strings(oldPeers)
|
||||||
|
|
||||||
return oldPeers, reflect.DeepEqual(peers, oldPeers)
|
return oldPeers, !reflect.DeepEqual(peers, oldPeers)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user