goraft/raft — pull request #197 by xiangli-cmu (2014-03-10 20:15:36+00:00)
Title: refactor(server.go) No lock is needed when reading server variables in a internal function

Our server is a single routine for loop. We have a lock to avoid "data-race" between the external function calls and internal operations(writes). So we can drop the extra lock when reading variables internally.