pub fn quorum_active(&mut self) -> bool {
        let mut votes = HashMap::new();
        self.visit(|id, progress| {
            if progress.is_learner {
                return;
            }
            votes.insert(id, progress.recent_active);
        });
        self.config.voters.vote_result(&votes) == VoteWon
    }
// returns true if the quorum is active from the view of the local
// raft state machine. Otherwise, it returns false.
returns true if the quorum is active from the view of the local
raft state machine. Otherwise, it returns false.
returns true if the quorum is active from the view of the local raft state machine . Otherwise it returns false .
pub fn quorum_active(&mut self) -> bool {
        let mut votes = HashMap::new();
        self.visit(|id, progress| {
            if progress.is_learner {
                return;
            }
            votes.insert(id, progress.recent_active);
        });
        self.config.voters.vote_result(&votes) == VoteWon
    }
pub fn quorum_active ( & mut self ) -> bool { let mut votes = HashMap :: new ( ) ; self . visit ( | id , progress | { if progress . is_learner { return ; } votes . insert ( id , progress . recent_active ) ; } ) ; self . config . voters . vote_result ( & votes ) == VoteWon }
returns true if the quorum is active from the view of the local
raft state machine.
returns true if the quorum is active from the view of the local raft state machine .
&mut self