diff --git a/Cargo.toml b/Cargo.toml index 82b328f..49fcda6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ futures-util = { version = "0.3", default-features = false, features = [ http = "1.1" httparse = "1.8" log = { version = "0.4", features = ["std"] } -moka = { version = "0.12", features = ["future"] } +moka = { version = "0.11", features = ["future"] } reqwest = { version = "0.11", default-features = false, features = [ "rustls-tls", "json", diff --git a/src/dns.rs b/src/dns.rs index 0dd2d32..e31821c 100644 --- a/src/dns.rs +++ b/src/dns.rs @@ -61,7 +61,7 @@ pub(crate) fn create_dns_cache() -> Cache, Message> { } pub(crate) async fn dns_cache_get_message(cache: &Cache, Message>, message: &Message) -> Option { - if let Some(mut cached_message) = cache.get(&message.queries().to_vec()).await { + if let Some(mut cached_message) = cache.get(&message.queries().to_vec()) { cached_message.set_id(message.id()); return Some(cached_message); }