From eff3aadba1d38a590c02e8c5f00ceec231d402aa Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Fri, 30 May 2014 15:52:20 -0700 Subject: [PATCH] raft: add full stop to every function comment --- raft/raft.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raft/raft.go b/raft/raft.go index 6579eabe3..9a843447c 100644 --- a/raft/raft.go +++ b/raft/raft.go @@ -132,14 +132,14 @@ func (sm *stateMachine) poll(addr int, v bool) (granted int) { 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) { m.From = sm.addr m.Term = sm.term 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) { in := sm.ins[to] m := Message{}