pub fn advance(&mut self, rd: &Ready) {
        if !is_empty_hard_state(&rd.hard_state) {
            self.prev_hard_st = rd.hard_state.clone();
        }
        self.raft.advance(rd);
    }
/// Advance notifies the RawNode that the application has applied and saved progress in the
/// last Ready results.
Advance notifies the RawNode that the application has applied and saved progress in the
last Ready results.
Advance notifies the RawNode that the application has applied and saved progress in the last Ready results .
pub fn advance(&mut self, rd: &Ready) {
        if !is_empty_hard_state(&rd.hard_state) {
            self.prev_hard_st = rd.hard_state.clone();
        }
        self.raft.advance(rd);
    }
pub fn advance ( & mut self , rd : & Ready ) { if ! is_empty_hard_state ( & rd . hard_state ) { self . prev_hard_st = rd . hard_state . clone ( ) ; } self . raft . advance ( rd ) ; }
Advance notifies the RawNode that the application has applied and saved progress in the
last Ready results.
Advance notifies the RawNode that the application has applied and saved progress in the last Ready results .
&mut self
rd
&Ready