raft: typo

This commit is contained in:
ngaut 2016-01-04 11:51:51 +08:00
parent bf9e2a550c
commit acee23112a

View File

@ -262,7 +262,7 @@ func (r *raft) send(m pb.Message) {
r.msgs = append(r.msgs, m) r.msgs = append(r.msgs, m)
} }
// sendAppend sends RRPC, with entries to the given peer. // sendAppend sends RPC, with entries to the given peer.
func (r *raft) sendAppend(to uint64) { func (r *raft) sendAppend(to uint64) {
pr := r.prs[to] pr := r.prs[to]
if pr.isPaused() { if pr.isPaused() {
@ -338,7 +338,7 @@ func (r *raft) sendHeartbeat(to uint64) {
r.send(m) r.send(m)
} }
// bcastAppend sends RRPC, with entries to all peers that are not up-to-date // bcastAppend sends RPC, with entries to all peers that are not up-to-date
// according to the progress recorded in r.prs. // according to the progress recorded in r.prs.
func (r *raft) bcastAppend() { func (r *raft) bcastAppend() {
for i := range r.prs { for i := range r.prs {
@ -349,7 +349,7 @@ func (r *raft) bcastAppend() {
} }
} }
// bcastHeartbeat sends RRPC, without entries to all the peers. // bcastHeartbeat sends RPC, without entries to all the peers.
func (r *raft) bcastHeartbeat() { func (r *raft) bcastHeartbeat() {
for i := range r.prs { for i := range r.prs {
if i == r.id { if i == r.id {