From ef95d9b539d340e45a4f6fbaed9d6c5ae7804eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 19 Jan 2021 10:21:12 +0100 Subject: [PATCH] crypto: Fix a misleading comment about the outbound session rotation period --- matrix_sdk_crypto/src/olm/group_sessions/outbound.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix_sdk_crypto/src/olm/group_sessions/outbound.rs b/matrix_sdk_crypto/src/olm/group_sessions/outbound.rs index 4f82c93d..b490776e 100644 --- a/matrix_sdk_crypto/src/olm/group_sessions/outbound.rs +++ b/matrix_sdk_crypto/src/olm/group_sessions/outbound.rs @@ -280,7 +280,7 @@ impl OutboundGroupSession { || self.creation_time.elapsed() // Since the encryption settings are provided by users and not // checked someone could set a really low rotation period so - // clamp it at a minute. + // clamp it to an hour. >= max(self.settings.rotation_period, Duration::from_secs(3600)) }