From 494b275a10f6008035268332ecf220e621eefeb6 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 8 Apr 2024 11:53:40 +0200 Subject: [PATCH] fix day duration --- crates/api_common/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/api_common/src/lib.rs b/crates/api_common/src/lib.rs index dd9d51015..4bb7ada5b 100644 --- a/crates/api_common/src/lib.rs +++ b/crates/api_common/src/lib.rs @@ -43,9 +43,9 @@ impl Default for SuccessResponse { } } -// TODO: use from_hours once stabilized +// TODO: use from_days once stabilized // https://github.com/rust-lang/rust/issues/120301 -const DAY: Duration = Duration::from_secs(3600); +const DAY: Duration = Duration::from_secs(24 * 60 * 60); /// Calculate how long to sleep until next federation send based on how many /// retries have already happened. Uses exponential backoff with maximum of one day. The first