pub fn maybe_update(&mut self, n: u64) -> bool {
        let mut update = false;
        if self._match < n {
            self._match = n;
            update = true;
            self.probe_acked();
        }
        if self.next < n + 1 {
            self.next = n + 1;
        }
        update
    }
/// maybe_update is called when an MsgAppResp arrives from the follower, with the
/// index acked by it. The method returns false if the given n index comes of from
/// an outdated message. Otherwise it updates the progress and return true.
maybe_update is called when an MsgAppResp arrives from the follower, with the
index acked by it. The method returns false if the given n index comes of from
an outdated message. Otherwise it updates the progress and return true.
maybe_update is called when an MsgAppResp arrives from the follower with the index acked by it . The method returns false if the given n index comes of from an outdated message . Otherwise it updates the progress and return true .
pub fn maybe_update(&mut self, n: u64) -> bool {
        let mut update = false;
        if self._match < n {
            self._match = n;
            update = true;
            self.probe_acked();
        }
        if self.next < n + 1 {
            self.next = n + 1;
        }
        update
    }
pub fn maybe_update ( & mut self , n : u64 ) -> bool { let mut update = false ; if self . _match < n { self . _match = n ; update = true ; self . probe_acked ( ) ; } if self . next < n + 1 { self . next = n + 1 ; } update }
maybe_update is called when an MsgAppResp arrives from the follower, with the
index acked by it.
maybe_update is called when an MsgAppResp arrives from the follower with the index acked by it .
&mut self
n
u64