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 9, 2018
1 parent 6f564ea commit 5e7d14c
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 @@ -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,
Expand Down

0 comments on commit 5e7d14c

Please sign in to comment.