Merge pull request #4123 from ngaut/ngaut/typo

raft: typo
release-2.3
Xiang Li 2016-01-03 20:27:41 -08:00
commit e0a06bb5d6
1 changed files with 3 additions and 3 deletions

View File

@ -262,7 +262,7 @@ func (r *raft) send(m pb.Message) {
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) {
pr := r.prs[to]
if pr.isPaused() {
@ -338,7 +338,7 @@ func (r *raft) sendHeartbeat(to uint64) {
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.
func (r *raft) bcastAppend() {
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() {
for i := range r.prs {
if i == r.id {