From 5d0dc8b13708ba78ba84714f1e92323ce7a8a1ed Mon Sep 17 00:00:00 2001 From: theS1LV3R Date: Thu, 12 Nov 2026 13:52:35 +0100 Subject: [PATCH] chore: Update variable name, improve doc comment --- src/service/federation/execute.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/service/federation/execute.rs b/src/service/federation/execute.rs index 152433cb7..594b84a10 100644 --- a/src/service/federation/execute.rs +++ b/src/service/federation/execute.rs @@ -138,9 +138,8 @@ impl super::Service { self.ensure_remote_is_healthy(dest)?; - /// How long to mark a server as unhealthy before attempting - /// re-resolution - const UNHEALTHY_TIMEOUT: Duration = Duration::from_hours(24 * 90); + /// How long to wait with re-resolution if a server fails to resolve + const UNRESOLVABLE_RETRY_AFTER: Duration = Duration::from_hours(24 * 90); let actual = self .services @@ -149,7 +148,7 @@ impl super::Service { .resolve_server(dest.as_str()) .await .inspect_err(|_| { - self.hit_unhealthy(dest.to_owned(), Some(UNHEALTHY_TIMEOUT)); + self.hit_unhealthy(dest.to_owned(), Some(UNRESOLVABLE_RETRY_AFTER)); self.mark_destination_stale(dest); })?;