refactor: extract resolve_coalesced, test real code #21
Reference in New Issue
Block a user
Delete Branch "refactor/extract-resolve-coalesced"
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
Disposition,acquire_inflight(), andresolve_coalesced()fromhandle_queryso coalescing logic is independently testablehandle_querynow delegates toresolve_coalescedwithresolve_recursiveas the closureresolve_coalesceddirectly with mock futures — no TCP servers, no iterative resolver chain, deterministicDebugderive toQueryPathforassert_eq!in testsresponse_fromto echo the question section (RFC compliance)Option<String>return — caller logs actual error instead of generic "RECURSIVE ERROR"servfail_leader_includes_question_section,leader_error_preserves_message, follower SERVFAIL question-section assertionsTest plan
make allpasses (fmt, clippy, audit, build, 111 tests)🤖 Generated with Claude Code