diff --git a/server.go b/server.go index bdd5578a31..e668e757ab 100644 --- a/server.go +++ b/server.go @@ -167,22 +167,16 @@ func (s *Server) LogPath() string { // Retrieves the current state of the server. func (s *Server) State() string { - // s.mutex.Lock() - // defer s.mutex.Unlock() return s.state } // Retrieves the current term of the server. func (s *Server) Term() uint64 { - s.mutex.Lock() - defer s.mutex.Unlock() return s.currentTerm } // Retrieves the name of the candidate this server voted for in this term. func (s *Server) VotedFor() string { - s.mutex.Lock() - defer s.mutex.Unlock() return s.votedFor }