goraft/raft — pull request #181 by xiangli-cmu (2014-02-16 00:18:04+00:00)
Title: refactor(server.go) change setCurrentTerm to updateCurrentTerm

process functions should always compare the term
simplify the logic of updateCurrentTerm
remove unnecessary setState