pull/820/head
Ben Johnson 2013-05-26 15:51:15 -06:00
commit 1337175e63
1 changed files with 2 additions and 2 deletions

View File

@ -107,14 +107,14 @@ func (s *Server) LogPath() string {
// Retrieves the current state of the server.
func (s *Server) State() string {
s.mutex.Lock()
s.mutex.Unlock()
defer s.mutex.Unlock()
return s.state
}
// Retrieves the name of the candidate this server voted for in this term.
func (s *Server) VotedFor() string {
s.mutex.Lock()
s.mutex.Unlock()
defer s.mutex.Unlock()
return s.votedFor
}