chore: Update variable name, improve doc comment

This commit is contained in:
theS1LV3R authored and Ellis Git committed 2026-11-12 14:26:17 +00:00
1 parent 4d271a5621
commit 5d0dc8b137
1 file changed
+3 -4
+3 -4
View File
@@ -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);
})?;