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