mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: add full stop to every function comment
This commit is contained in:
parent
167ef7e8b0
commit
eff3aadba1
@ -132,14 +132,14 @@ func (sm *stateMachine) poll(addr int, v bool) (granted int) {
|
|||||||
return granted
|
return granted
|
||||||
}
|
}
|
||||||
|
|
||||||
// send persists state to stable storage and then sends to its mailbox
|
// send persists state to stable storage and then sends to its mailbox.
|
||||||
func (sm *stateMachine) send(m Message) {
|
func (sm *stateMachine) send(m Message) {
|
||||||
m.From = sm.addr
|
m.From = sm.addr
|
||||||
m.Term = sm.term
|
m.Term = sm.term
|
||||||
sm.msgs = append(sm.msgs, m)
|
sm.msgs = append(sm.msgs, m)
|
||||||
}
|
}
|
||||||
|
|
||||||
// sendAppend sends RRPC, with entries to the given peer
|
// sendAppend sends RRPC, with entries to the given peer.
|
||||||
func (sm *stateMachine) sendAppend(to int) {
|
func (sm *stateMachine) sendAppend(to int) {
|
||||||
in := sm.ins[to]
|
in := sm.ins[to]
|
||||||
m := Message{}
|
m := Message{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user