mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #2094] [MERGED] Remove generic Error from DnsHandle #2807
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#2807
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/2094
Author: @bluejekyll
Created: 11/21/2023
Status: ✅ Merged
Merged: 11/26/2023
Merged by: @bluejekyll
Base:
main← Head:use-protoerror-for-dnshandle📝 Commits (2)
053fe17Remove generic Error from DnsHandlec24d6b2cleanup error DnsHandle error changes📊 Changes
28 files changed (+470 additions, -560 deletions)
View changed files
📝
bin/tests/server_harness/mut_message_client.rs(+0 -1)📝
crates/async-std-resolver/src/tests.rs(+2 -3)📝
crates/client/src/client/async_client.rs(+2 -3)📝
crates/client/src/client/async_secure_client.rs(+0 -1)📝
crates/client/src/client/client.rs(+1 -1)📝
crates/client/src/client/memoize_client_handle.rs(+0 -2)📝
crates/proto/src/error.rs(+172 -2)📝
crates/proto/src/xfer/dns_exchange.rs(+0 -1)📝
crates/proto/src/xfer/dns_handle.rs(+1 -4)📝
crates/proto/src/xfer/dnssec_dns_handle.rs(+37 -43)📝
crates/proto/src/xfer/mod.rs(+0 -1)📝
crates/proto/src/xfer/retry_dns_handle.rs(+7 -12)📝
crates/recursor/src/error.rs(+3 -5)📝
crates/recursor/src/recursor_pool.rs(+1 -1)📝
crates/resolver/src/async_resolver.rs(+3 -3)📝
crates/resolver/src/caching_client.rs(+44 -44)📝
crates/resolver/src/dns_lru.rs(+31 -40)📝
crates/resolver/src/error.rs(+14 -207)📝
crates/resolver/src/lookup.rs(+23 -26)📝
crates/resolver/src/lookup_ip.rs(+41 -56)...and 8 more files
📄 Description
While working on #2084, there was a huge amount of type golf with
DnsHandlethat seemed really pointless and had very little gain. I've simplified that by makingDnsHandlealways returnProtoErrorwhich should make inter-crate implementations of DnsHandle simpler.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.