raft: Fix comment on sendHeartbeat

This commit is contained in:
Nathan VanBenschoten 2018-10-08 19:42:06 -04:00
parent 7be7ac5a5d
commit 73c20cc1b7

View File

@ -529,7 +529,7 @@ func (r *raft) maybeSendAppend(to uint64, sendIfEmpty bool) bool {
return true return true
} }
// sendHeartbeat sends an empty MsgApp // sendHeartbeat sends a heartbeat RPC to the given peer.
func (r *raft) sendHeartbeat(to uint64, ctx []byte) { func (r *raft) sendHeartbeat(to uint64, ctx []byte) {
// Attach the commit as min(to.matched, r.committed). // Attach the commit as min(to.matched, r.committed).
// When the leader sends out heartbeat message, // When the leader sends out heartbeat message,