From 5e7d14c3175cc2a2a217a7d70290b7f51a3ab9b1 Mon Sep 17 00:00:00 2001 From: Nathan VanBenschoten Date: Mon, 8 Oct 2018 19:42:06 -0400 Subject: [PATCH] raft: Fix comment on sendHeartbeat --- raft/raft.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raft/raft.go b/raft/raft.go index 6adf4232aeae..6713c647e468 100644 --- a/raft/raft.go +++ b/raft/raft.go @@ -524,7 +524,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,