Migrate from saorsa-node to ant-node 0.6#3
Merged
Conversation
Migrate from the saorsa-node git dependency to the published ant-node 0.6 crate. Updates all imports, binary resolution constants, API call sites (new peer_addrs parameter), and comments/strings throughout. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Thread MultiAddr from DHT lookups through the entire request pipeline so send_and_await_chunk_response can establish faster connections. Network::find_closest_peers now returns (PeerId, Vec<MultiAddr>) instead of discarding the addresses from DHTNode. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Simplify handler logic by replacing handle_message with try_handle_request. Add explicit handling for non-request messages and improve error messaging.
jacderida
approved these changes
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
saorsa-nodegit dependency withant-node = "0.6"from crates.io — updates all imports (saorsa_node::→ant_node::), binary resolution constants, comments, and test strings across 22 files.send_and_await_chunk_response—Network::find_closest_peersnow returns(PeerId, Vec<MultiAddr>)instead of discardingDHTNode.addresses, enabling faster P2P connections at all 4 call sites.Test plan
cargo checkpassescargo fmt --all -- --checkcleancargo clippy --all-targets --all-features -- -D warningsclean🤖 Generated with Claude Code