/// Recover from failure. Goes into recover state and sends `PrepareReq` to all peers.
Recover from failure. Goes into recover state and sends `PrepareReq` to all peers.
Recover from failure . Goes into recover state and sends ` PrepareReq ` to all peers .
pub fn fail_recovery(&mut self) {
        self.state = (Role::Follower, Phase::Recover);
        for pid in &self.peers {
            let m = Message::with(self.pid, *pid, PaxosMsg::PrepareReq);
            self.outgoing.push(m);
        }
    }
pub fn fail_recovery ( & mut self ) { self . state = ( Role :: Follower , Phase :: Recover ) ; for pid in & self . peers { let m = Message :: with ( self . pid , * pid , PaxosMsg :: PrepareReq ) ; self . outgoing . push ( m ) ; } }
Recover from failure.
Recover from failure .
&mut self