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 14, 2018
1 parent 7be7ac5 commit 73c20cc
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 @@ -529,7 +529,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 73c20cc

Please sign in to comment.