From d7ec3c19fae5a26d1d7a526dbc03d3e522f52748 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 20 Jul 2026 08:04:01 +0000 Subject: [PATCH] refactor(sdk): make the dehydration rotation interval private. The `DEHYDRATION_INTERVAL` constant is an internal detail of the rotation task rather than part of the public API, and its doc no longer refers to another library. Signed-off-by: Jason Volk --- crates/matrix-sdk/src/encryption/dehydrated_devices.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/matrix-sdk/src/encryption/dehydrated_devices.rs b/crates/matrix-sdk/src/encryption/dehydrated_devices.rs index 17d5684af..606dacaaf 100644 --- a/crates/matrix-sdk/src/encryption/dehydrated_devices.rs +++ b/crates/matrix-sdk/src/encryption/dehydrated_devices.rs @@ -99,10 +99,9 @@ const DEFAULT_DEVICE_DISPLAY_NAME: &str = "Dehydrated device"; /// stabilizes. const PICKLE_KEY_SECRET_NAME: &str = "org.matrix.msc3814"; -/// How often [`DehydratedDevices::start`] rotates the dehydrated device. -/// -/// Set to one week, matching matrix-js-sdk's `DEHYDRATION_INTERVAL`. -pub const DEHYDRATION_INTERVAL: Duration = Duration::from_secs(7 * 24 * 60 * 60); +/// How often the rotation task started by [`DehydratedDevices::start`] +/// re-creates the dehydrated device. Fixed at one week. +const DEHYDRATION_INTERVAL: Duration = Duration::from_secs(7 * 24 * 60 * 60); /// Errors that can occur while managing dehydrated devices. #[derive(Debug, Error)]