From 8897cc5444f4abc650aa19241a0c3c9e7ac92df0 Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Fri, 13 Oct 2023 18:21:33 +0300 Subject: [PATCH] removing expired check on invitation --- p2p-broker/src/broker_store/invitation.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2p-broker/src/broker_store/invitation.rs b/p2p-broker/src/broker_store/invitation.rs index ff30f96..ca22643 100644 --- a/p2p-broker/src/broker_store/invitation.rs +++ b/p2p-broker/src/broker_store/invitation.rs @@ -150,9 +150,9 @@ impl<'a> Invitation<'a> { .store .get(Self::PREFIX, &to_vec(&self.id)?, Some(Self::TYPE))?; let t: (u8, u32, Option) = from_slice(&type_ser)?; - if t.1 < now_timestamp() { - return Err(ProtocolError::Expired); - } + // if t.1 < now_timestamp() { + // return Err(ProtocolError::Expired); + // } Ok(t.0) }