mirror of
https://github.com/status-im/consul.git
synced 2025-01-31 07:57:17 +00:00
consul: Should not clear the peer set
This commit is contained in:
parent
966daed094
commit
80439376cf
@ -250,10 +250,6 @@ func (s *Server) setupRaft() error {
|
|||||||
if !raft.PeerContained(peers, trans.LocalAddr()) {
|
if !raft.PeerContained(peers, trans.LocalAddr()) {
|
||||||
s.raftPeers.SetPeers(raft.AddUniquePeer(peers, trans.LocalAddr()))
|
s.raftPeers.SetPeers(raft.AddUniquePeer(peers, trans.LocalAddr()))
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
// If we are not in bootstrap mode, start with no peers, wait for the
|
|
||||||
// existing leader to replicate to us and set the peer set
|
|
||||||
s.raftPeers.SetPeers([]net.Addr{})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure we set the LogOutput
|
// Make sure we set the LogOutput
|
||||||
|
Loading…
x
Reference in New Issue
Block a user