Skip to content

Commit

Permalink
Downgrade moka to temporarily fix crash on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Mar 17, 2024
1 parent 39a1b4b commit 6724ec4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub(crate) fn create_dns_cache() -> Cache<Vec<Query>, Message> {
}

pub(crate) async fn dns_cache_get_message(cache: &Cache<Vec<Query>, Message>, message: &Message) -> Option<Message> {
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);
}
Expand Down

0 comments on commit 6724ec4

Please sign in to comment.