aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/resolver.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/resolver.rs')
-rwxr-xr-xazalea-protocol/src/resolver.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/azalea-protocol/src/resolver.rs b/azalea-protocol/src/resolver.rs
index 6f6f799c..79dd660f 100755
--- a/azalea-protocol/src/resolver.rs
+++ b/azalea-protocol/src/resolver.rs
@@ -30,8 +30,7 @@ pub async fn resolve_address(address: &ServerAddress) -> Result<SocketAddr, Reso
// we specify Cloudflare instead of the default resolver because
// trust_dns_resolver has an issue on Windows where it's really slow using the
// default resolver
- let resolver =
- TokioAsyncResolver::tokio(ResolverConfig::cloudflare(), ResolverOpts::default()).unwrap();
+ let resolver = TokioAsyncResolver::tokio(ResolverConfig::cloudflare(), ResolverOpts::default());
// first, we do a srv lookup for _minecraft._tcp.<host>
let srv_redirect_result = resolver