pub(crate) fn accept_ready(&mut self, ready: &Ready) {
        debug!("accept ready, {:?}", ready);
        if ready.soft_state.is_some() {
            self.prev_soft_st = ready.soft_state.clone();
        }
        self.raft.read_states.clear();
        self.raft.msgs.clear();
    }
// acceptReady is called when the consumer of the RawNode has decided to go
// ahead and handle a Ready. Nothing must alter the state of the RawNode between
// this call and the prior call to Ready().
acceptReady is called when the consumer of the RawNode has decided to go
ahead and handle a Ready. Nothing must alter the state of the RawNode between
this call and the prior call to Ready().
acceptReady is called when the consumer of the RawNode has decided to go ahead and handle a Ready . Nothing must alter the state of the RawNode between this call and the prior call to Ready () .
pub(crate) fn accept_ready(&mut self, ready: &Ready) {
        debug!("accept ready, {:?}", ready);
        if ready.soft_state.is_some() {
            self.prev_soft_st = ready.soft_state.clone();
        }
        self.raft.read_states.clear();
        self.raft.msgs.clear();
    }
pub ( crate ) fn accept_ready ( & mut self , ready : & Ready ) { debug ! ( " " ready ) ; if ready . soft_state . is_some ( ) { self . prev_soft_st = ready . soft_state . clone ( ) ; } self . raft . read_states . clear ( ) ; self . raft . msgs . clear ( ) ; }
acceptReady is called when the consumer of the RawNode has decided to go
ahead and handle a Ready.
acceptReady is called when the consumer of the RawNode has decided to go ahead and handle a Ready .
&mut self
ready
&Ready