Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Oct 20, 2024
1 parent e3e02b4 commit 5a2c2b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/net/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ pub(crate) async fn prune_dns_cache(context: &Context) -> Result<()> {
}

/// Map from hostname to IP addresses.
static LOOKUP_HOST_CACHE: Lazy<std::sync::Mutex<HashMap<String, Vec<IpAddr>>>> = Default::default();
static LOOKUP_HOST_CACHE: Lazy<std::sync::Mutex<HashMap<String, Vec<IpAddr>>>> =
Lazy::new(Default::default);

async fn lookup_host_with_memory_cache(
context: &Context,
Expand Down

0 comments on commit 5a2c2b4

Please sign in to comment.