pub(super) fn cancel_catch_up_state(&mut self) {
        match std::mem::replace(&mut self.consensus_state, ConsensusState::Uniform) {
            ConsensusState::CatchingUp { node, tx, .. } => {
                let _ = tx.send(Err(ChangeConfigError::NodeFailedToCatchUp(node)));
            }
            other => self.consensus_state = other,
        }
    }
/// Revert to `Uniform` state, and allow new configuration changes to
/// take place, as the previous one failed because the node could not
/// catch up.
Revert to `Uniform` state, and allow new configuration changes to
take place, as the previous one failed because the node could not
catch up.
Revert to ` Uniform ` state and allow new configuration changes to take place as the previous one failed because the node could not catch up .
pub(super) fn cancel_catch_up_state(&mut self) {
        match std::mem::replace(&mut self.consensus_state, ConsensusState::Uniform) {
            ConsensusState::CatchingUp { node, tx, .. } => {
                let _ = tx.send(Err(ChangeConfigError::NodeFailedToCatchUp(node)));
            }
            other => self.consensus_state = other,
        }
    }
pub ( super ) fn cancel_catch_up_state ( & mut self ) { match std :: mem :: replace ( & mut self . consensus_state , ConsensusState :: Uniform ) { ConsensusState :: CatchingUp { node , tx , .. } => { let _ = tx . send ( Err ( ChangeConfigError :: NodeFailedToCatchUp ( node ) ) ) ; } other => self . consensus_state = other , } }
Revert to `Uniform` state, and allow new configuration changes to
take place, as the previous one failed because the node could not
catch up.
Revert to ` Uniform ` state and allow new configuration changes to take place as the previous one failed because the node could not catch up .
&mut self
&mut self