mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-29 07:41:20 +00:00
fix day duration
This commit is contained in:
parent
2c56bf8ad5
commit
494b275a10
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue