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 <jason@zemos.net>
This commit is contained in:
Jason Volk
2026-07-20 08:04:01 +00:00
committed by Damir Jelić
parent be8f2dc0df
commit d7ec3c19fa

View File

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