mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: Fix comment on sendHeartbeat
This commit is contained in:
parent
7be7ac5a5d
commit
73c20cc1b7
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user