federation-send-retry-limit
Felix Ableitner 2024-04-05 12:11:25 +02:00
parent 3f9e182110
commit b9f22aba61
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ pub(crate) mod tests {
#[test] #[test]
fn test_federate_retry_sleep_duration() { fn test_federate_retry_sleep_duration() {
let s = |secs| Duration::from_secs(secs); let s = Duration::from_secs;
assert_eq!(s(1), federate_retry_sleep_duration(0)); assert_eq!(s(1), federate_retry_sleep_duration(0));
assert_eq!(s(2), federate_retry_sleep_duration(1)); assert_eq!(s(2), federate_retry_sleep_duration(1));
assert_eq!(s(4), federate_retry_sleep_duration(2)); assert_eq!(s(4), federate_retry_sleep_duration(2));

View File

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1.6 # syntax=docker/dockerfile:1.6
ARG RUST_VERSION=1.77 ARG RUST_VERSION=1.76
ARG CARGO_BUILD_FEATURES=default ARG CARGO_BUILD_FEATURES=default
ARG RUST_RELEASE_MODE=debug ARG RUST_RELEASE_MODE=debug