func (s *RaftServer) Stop() {
	s.stopSignal <- 1
	s.leaderElectionTimer.Stop()
	s.leaderHeartBeatTimer.Stop()
	s.dbStore.Close()
}
// Stop shuts down a raft server
Stop shuts down a raft server
// Stop shuts down a raft server
func (s *RaftServer) Stop() {
	s.stopSignal <- 1
	s.leaderElectionTimer.Stop()
	s.leaderHeartBeatTimer.Stop()
	s.dbStore.Close()
}
func ( s * RaftServer ) Stop ( ) { s . stopSignal <- 1 s . leaderElectionTimer . Stop ( ) s . leaderHeartBeatTimer . Stop ( ) s . dbStore . Close ( ) }
Stop shuts down a raft server
Stop shuts down a raft server