From 80439376cf3b6d02cb6851e1bbdd06e06d7a203a Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Tue, 25 Mar 2014 14:57:00 -0700 Subject: [PATCH] consul: Should not clear the peer set --- consul/server.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/consul/server.go b/consul/server.go index 41f26858b5..ccd28e9811 100644 --- a/consul/server.go +++ b/consul/server.go @@ -250,10 +250,6 @@ func (s *Server) setupRaft() error { if !raft.PeerContained(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