Skip to content

Migrate from saorsa-node to ant-node 0.6#3

Merged
jacderida merged 3 commits into
mainfrom
migrate-to-ant-node-0.6
Mar 25, 2026
Merged

Migrate from saorsa-node to ant-node 0.6#3
jacderida merged 3 commits into
mainfrom
migrate-to-ant-node-0.6

Conversation

@mickvandijke

Copy link
Copy Markdown
Contributor

Summary

  • Replace saorsa-node git dependency with ant-node = "0.6" from crates.io — updates all imports (saorsa_node::ant_node::), binary resolution constants, comments, and test strings across 22 files.
  • Propagate peer addresses through send_and_await_chunk_responseNetwork::find_closest_peers now returns (PeerId, Vec<MultiAddr>) instead of discarding DHTNode.addresses, enabling faster P2P connections at all 4 call sites.

Test plan

  • cargo check passes
  • cargo fmt --all -- --check clean
  • cargo clippy --all-targets --all-features -- -D warnings clean
  • E2E tests pass on CI

🤖 Generated with Claude Code

mickvandijke and others added 3 commits March 25, 2026 12:57
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
jacderida merged commit cf0c730 into main Mar 25, 2026
10 of 12 checks passed
Nic-dorman added a commit that referenced this pull request Jun 9, 2026
- TempDownload RAII guard: removes the staging file on every disk-path
  error AND on a panic unwind out of the block_in_place decrypt loop,
  replacing three duplicated cleanup arms (#1). drop(file) before rename
  for Windows.
- New Error::Cancelled variant for a dropped receiver; was misclassified
  as Error::Network (#3). Routed to ApplicationError in classify_error so
  caller-initiated cancellation is not retried as a transport failure.
- Doc the exact channel item type Result<Bytes, Error> on
  file_download_to_sender (#4).
- Drop now-stale #[allow(clippy::unused_async)] on file_download (#7).
- Harden e2e test: assert each streamed chunk is non-empty and >=2
  segments arrive (multi-batch property), rename to
  test_file_download_to_sender_multibatch_round_trip (#6).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Nic-dorman added a commit that referenced this pull request Jun 11, 2026
- TempDownload RAII guard: removes the staging file on every disk-path
  error AND on a panic unwind out of the block_in_place decrypt loop,
  replacing three duplicated cleanup arms (#1). drop(file) before rename
  for Windows.
- New Error::Cancelled variant for a dropped receiver; was misclassified
  as Error::Network (#3). Routed to ApplicationError in classify_error so
  caller-initiated cancellation is not retried as a transport failure.
- Doc the exact channel item type Result<Bytes, Error> on
  file_download_to_sender (#4).
- Drop now-stale #[allow(clippy::unused_async)] on file_download (#7).
- Harden e2e test: assert each streamed chunk is non-empty and >=2
  segments arrive (multi-batch property), rename to
  test_file_download_to_sender_multibatch_round_trip (#6).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants