From d0f4ec8a3e67aab51f2bb3e28b46743bae1ef9cd Mon Sep 17 00:00:00 2001 From: ldm0 Date: Fri, 18 Sep 2026 02:42:59 +0800 Subject: [PATCH] refactor: drop redundant curl DNS cache timeout --- moli-fetch/src/blocking/mod.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/moli-fetch/src/blocking/mod.rs b/moli-fetch/src/blocking/mod.rs index 4609016a5..72df752a5 100644 --- a/moli-fetch/src/blocking/mod.rs +++ b/moli-fetch/src/blocking/mod.rs @@ -586,9 +586,6 @@ pub(crate) fn configure_easy( if let Err(error) = easy.tcp_keepalive(true) { debug!(url = %request_url, "failed to enable TCP keepalive: {error}"); } - if let Err(error) = easy.dns_cache_timeout(Duration::from_secs(60)) { - debug!(url = %request_url, "failed to configure curl DNS cache timeout: {error}"); - } if let Some(max_connects) = config .http_max_total_connections() .or_else(|| config.effective_http_max_host_connections().map(u16::from))