refactor: deduplicate query/record/sinkhole helpers #22
Reference in New Issue
Block a user
Delete Branch "refactor/dedup-helpers"
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?
Summary
DnsPacket::query(id, domain, qtype)constructor in packet.rs — replacesmock_query,make_query, and 4 inline query constructions across ctx.rs, forward.rs, recursive.rs, api.rsrecord_to_addr()in recursive.rs — replaces 4 identicalDnsRecord::A/AAAA → SocketAddrmatch blocks with.filter_map(record_to_addr)sinkhole_record()in ctx.rs — consolidates localhost and blocklist A/AAAA branching into single function callsTest plan
make allpasses (fmt, clippy, audit, build, 111 tests)🤖 Generated with Claude Code