removing expired check on invitation

pull/19/head
Niko PLP 1 year ago
parent 90b951e5bd
commit 8897cc5444
  1. 6
      p2p-broker/src/broker_store/invitation.rs

@ -150,9 +150,9 @@ impl<'a> Invitation<'a> {
.store .store
.get(Self::PREFIX, &to_vec(&self.id)?, Some(Self::TYPE))?; .get(Self::PREFIX, &to_vec(&self.id)?, Some(Self::TYPE))?;
let t: (u8, u32, Option<String>) = from_slice(&type_ser)?; let t: (u8, u32, Option<String>) = from_slice(&type_ser)?;
if t.1 < now_timestamp() { // if t.1 < now_timestamp() {
return Err(ProtocolError::Expired); // return Err(ProtocolError::Expired);
} // }
Ok(t.0) Ok(t.0)
} }

Loading…
Cancel
Save