fix day duration

This commit is contained in:
Felix Ableitner 2024-04-08 11:53:40 +02:00
parent 2c56bf8ad5
commit 494b275a10

View file

@ -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 // 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 /// 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 /// retries have already happened. Uses exponential backoff with maximum of one day. The first