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

This commit is contained in:
Damir Jelić 2021-01-19 10:21:12 +01:00
parent 377b8ea75a
commit ef95d9b539

View file

@ -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))
}