pub fn double_update(
        self,
        first: &SignedUpdate,
        second: &SignedUpdate,
    ) -> Result<Replica<Failed>, Self> {
        if first == second || self.check_sig(first).is_err() || self.check_sig(second).is_err() {
            Err(self)
        } else {
            Ok(Replica {
                remote: self.remote,
                local: self.local,
                updater: self.updater,
                optimistic_wait: self.optimistic_wait,
                state: Failed {},
            })
        }
    }
/// Notify Replica of double update, and set to failed
Notify Replica of double update, and set to failed
Notify Replica of double update and set to failed
pub fn double_update(
        self,
        first: &SignedUpdate,
        second: &SignedUpdate,
    ) -> Result<Replica<Failed>, Self> {
        if first == second || self.check_sig(first).is_err() || self.check_sig(second).is_err() {
            Err(self)
        } else {
            Ok(Replica {
                remote: self.remote,
                local: self.local,
                updater: self.updater,
                optimistic_wait: self.optimistic_wait,
                state: Failed {},
            })
        }
    }
pub fn double_update ( self , first : & SignedUpdate , second : & SignedUpdate , ) -> Result < Replica < Failed > , Self > { if first == second || self . check_sig ( first ) . is_err ( ) || self . check_sig ( second ) . is_err ( ) { Err ( self ) } else { Ok ( Replica { remote : self . remote , local : self . local , updater : self . updater , optimistic_wait : self . optimistic_wait , state : Failed { } , } ) } }
Notify Replica of double update, and set to failed
Notify Replica of double update and set to failed
self
first
&SignedUpdate
second
&SignedUpdate
self
first
&SignedUpdate
second
&SignedUpdate