mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
fix day duration
This commit is contained in:
parent
2c56bf8ad5
commit
494b275a10
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user