do not make map twice

pull/820/head
Xiang Li 2014-01-12 16:05:31 +08:00
parent 4aa1042d78
commit 601a799693
1 changed files with 0 additions and 1 deletions

View File

@ -754,7 +754,6 @@ func (s *server) candidateLoop() {
// The event loop that is run when the server is in a Leader state.
func (s *server) leaderLoop() {
s.setState(Leader)
s.syncedPeer = make(map[string]bool)
logIndex, _ := s.log.lastInfo()
// Update the peers prevLogIndex to leader's lastLogIndex and start heartbeat.