From f4a761f803bf86ecc87f73a1a4fafae6716ebf19 Mon Sep 17 00:00:00 2001 From: Monica Moniot Date: Sat, 14 Oct 2023 11:39:21 -0400 Subject: [PATCH] renamed function so it cannot be typoed --- performance/src/zeta.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/performance/src/zeta.rs b/performance/src/zeta.rs index c0c4921..727e465 100644 --- a/performance/src/zeta.rs +++ b/performance/src/zeta.rs @@ -1797,6 +1797,7 @@ impl Session { self.state.read().unwrap().ratchet_state1.chain_len } /// Check whether this session is established and can send data. + /// /// Expired sessions will return false. pub fn established(&self) -> bool { !matches!( @@ -1805,6 +1806,8 @@ impl Session { ) } /// Check whether this session is still in the establishing phase of the handshake. + /// Sessions that are establishing are not capable of sending data. + /// /// Expired sessions will return false. pub fn establishing(&self) -> bool { matches!( @@ -1813,7 +1816,7 @@ impl Session { ) } /// Check whether this session is expired and can no longer be used. - pub fn expired(&self) -> bool { + pub fn is_expired(&self) -> bool { matches!(&self.state.read().unwrap().beta, ZetaAutomata::Null) } /// The static public key of the remote peer.