Skip to content

Commit

Permalink
raft: Fix comment on sendHeartbeat
Browse files Browse the repository at this point in the history
  • Loading branch information
nvanbenschoten committed Oct 12, 2018
1 parent 918f044 commit 697dddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raft/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 697dddf

Please sign in to comment.