raft: go fmt

release-2.0
Blake Mizerany 2014-05-19 00:28:33 -07:00 committed by Yicheng Qin
parent 6e0a668455
commit 8ddcd9799d
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ func (sm *stateMachine) theN() int {
func (sm *stateMachine) nextEnts() (ents []Entry) {
ci := sm.theN()
if ci > sm.commit {
ents = sm.log[sm.commit+1:ci]
ents = sm.log[sm.commit+1 : ci]
sm.commit = ci
}
return ents