crypto: Fix a misleading comment about the outbound session rotation period

master
Damir Jelić 2021-01-19 10:21:12 +01:00
parent 377b8ea75a
commit ef95d9b539
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ impl OutboundGroupSession {
|| self.creation_time.elapsed() || self.creation_time.elapsed()
// Since the encryption settings are provided by users and not // Since the encryption settings are provided by users and not
// checked someone could set a really low rotation period so // 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)) >= max(self.settings.rotation_period, Duration::from_secs(3600))
} }