mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #1550] [MERGED] Move to async-trait for server to simplify function calls #2407
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#2407
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/1550
Author: @bluejekyll
Created: 9/5/2021
Status: ✅ Merged
Merged: 9/20/2021
Merged by: @bluejekyll
Base:
main← Head:use-async-trait-in-server📝 Commits (2)
e69b903Move to async-trait for server to simplify function calls0c0e2aerequire Authority to have interior mutability📊 Changes
33 files changed (+1497 additions, -1250 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
Cargo.lock(+1 -2)📝
bin/src/named.rs(+46 -41)📝
crates/async-std-resolver/Cargo.toml(+1 -1)📝
crates/proto/Cargo.toml(+1 -1)📝
crates/server/Cargo.toml(+5 -0)📝
crates/server/src/authority/authority.rs(+28 -29)📝
crates/server/src/authority/authority_object.rs(+61 -77)📝
crates/server/src/authority/catalog.rs(+45 -51)📝
crates/server/src/authority/mod.rs(+1 -1)📝
crates/server/src/server/https_handler.rs(+10 -11)📝
crates/server/src/server/request_handler.rs(+5 -13)📝
crates/server/src/server/response_handler.rs(+5 -3)📝
crates/server/src/server/server_future.rs(+16 -42)📝
crates/server/src/store/file/authority.rs(+46 -49)📝
crates/server/src/store/forwarder/authority.rs(+28 -50)📝
crates/server/src/store/in_memory/authority.rs(+313 -150)📝
crates/server/src/store/sqlite/authority.rs(+205 -164)📝
crates/server/tests/authority_battery/basic.rs(+1 -1)📝
crates/server/tests/authority_battery/dnssec.rs(+4 -8)...and 13 more files
📄 Description
While working on #1525 I realized that would be a lot simpler if the function calls in the server were simplified as
async fns rather than the oldFuturestate-machines.There are a few additional changes on the way for this, but the initial change looks good (and fixes some things in some of the implementations).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.