Skip to content

Commit 4547bee

Browse files
Update hickory-resolver to 0.26 on spiceai-52 (port #647) (#662)
1 parent 4af8542 commit 4547bee

3 files changed

Lines changed: 108 additions & 21 deletions

File tree

Cargo.lock

Lines changed: 102 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ fallible-iterator = "0.3.0"
8484
fundu = "2.0.1"
8585
geo-types = "0.7.13"
8686
sha2 = "0.10"
87-
hickory-resolver = "0.25.2"
87+
hickory-resolver = "0.26"
8888
sea-query = { git = "https://github.com/spiceai/sea-query.git", rev = "213b6b876068f58159ebdd5852604a021afaebf9", features = [
8989
"backend-sqlite",
9090
"backend-postgres",

core/src/util/ns_lookup.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ pub async fn verify_ns_lookup_and_tcp_connect(host: &str, port: u16) -> Result<(
6969
host: host.to_string(),
7070
port,
7171
})?
72-
.build();
72+
.build()
73+
.map_err(|_| Error::UnableToConnect {
74+
host: host.to_string(),
75+
port,
76+
})?;
7377
match resolver.lookup_ip(host).await {
7478
Ok(ips) => {
7579
for ip in ips.iter() {

0 commit comments

Comments
 (0)