Browse Source

Merge pull request #982 from coreos/fix_tick

Fix tick
Xiang Li 11 years ago
parent
commit
e7eff1a975
1 changed files with 1 additions and 1 deletions
  1. 1 1
      raft/raft.go

+ 1 - 1
raft/raft.go

@@ -302,7 +302,7 @@ func (r *raft) becomeLeader() {
 	}
 	r.step = stepLeader
 	r.reset(r.Term)
-	r.tick = r.tickElection
+	r.tick = r.tickHeartbeat
 	r.lead = r.id
 	r.state = stateLeader
 	r.appendEntry(pb.Entry{Data: nil})