From ed4d5937a763673cf8d6750c3357fdb166573995 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 12 Apr 2025 21:29:36 -0430 Subject: upgrade deps --- azalea-protocol/Cargo.toml | 2 +- azalea-protocol/src/resolver.rs | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'azalea-protocol') diff --git a/azalea-protocol/Cargo.toml b/azalea-protocol/Cargo.toml index f2f6a9cf..dec299fc 100644 --- a/azalea-protocol/Cargo.toml +++ b/azalea-protocol/Cargo.toml @@ -46,7 +46,7 @@ thiserror.workspace = true tokio = { workspace = true, features = ["io-util", "net", "macros"] } tokio-util = { workspace = true, features = ["codec"] } tracing.workspace = true -hickory-resolver = { workspace = true, features = ["tokio-runtime"] } +hickory-resolver = { workspace = true, features = ["tokio"] } uuid.workspace = true crc32fast = { workspace = true, optional = true } diff --git a/azalea-protocol/src/resolver.rs b/azalea-protocol/src/resolver.rs index 63b66be3..c01a485b 100644 --- a/azalea-protocol/src/resolver.rs +++ b/azalea-protocol/src/resolver.rs @@ -4,8 +4,7 @@ use std::net::{IpAddr, SocketAddr}; use async_recursion::async_recursion; use hickory_resolver::{ - Name, TokioAsyncResolver, - config::{ResolverConfig, ResolverOpts}, + Name, TokioResolver, config::ResolverConfig, name_server::TokioConnectionProvider, }; use thiserror::Error; @@ -32,7 +31,11 @@ pub async fn resolve_address(address: &ServerAddress) -> Result let srv_redirect_result = resolver -- cgit v1.2.3