Skip to content

refactor!: drop bootstrap-cache hooks from client#67

Draft
mickvandijke wants to merge 2 commits intomainfrom
mick/remove-bootstrap-cache
Draft

refactor!: drop bootstrap-cache hooks from client#67
mickvandijke wants to merge 2 commits intomainfrom
mick/remove-bootstrap-cache

Conversation

@mickvandijke
Copy link
Copy Markdown
Contributor

Summary

  • Deletes ant-core/src/data/client/peer_cache.rs (the record_peer_outcome helper that fed observed RTT and success/failure into the now-removed BootstrapManager).
  • Strips record_peer_outcome calls and the surrounding start = Instant::now() RTT bookkeeping from chunk.rs and quote.rs.
  • Deletes tests/e2e_bootstrap_cache.rs (validated the persistence loop; no value with the manager gone).
  • Drops the "peer-quality scorer lives in peer_cache" note from adaptive.rs.
  • Bumps ant-protocol to track the corresponding branch.

Depends on

Test plan

  • cargo check --workspace
  • cargo clippy --workspace -- -D warnings
  • cargo test --lib (223 passed locally)
  • Pre-existing dual-saorsa-core conflict in e2e tests (registry ant-node = \"0.11.0\" brings registry saorsa-core; path ant-protocol brings the branch saorsa-core) is not addressed here. A [patch.crates-io] follow-up will fix it.

🤖 Generated with Claude Code

mickvandijke and others added 2 commits April 29, 2026 15:45
saorsa-core removed BootstrapManager and the cached_peer_count /
add_discovered_peer / update_peer_metrics methods on P2PNode. The
only consumer in ant-client was peer_cache::record_peer_outcome,
which fed observed RTT and success/failure into the cache from the
chunk PUT/GET and quote paths. With the cache gone, none of that
plumbing has anywhere to go, so it goes too.

Removes peer_cache.rs entirely, drops record_peer_outcome calls
plus their start = Instant::now() RTT bookkeeping from chunk.rs and
quote.rs, and removes the e2e_bootstrap_cache test that validated
the persistence loop. The "peer-quality scorer lives in peer_cache"
note in adaptive.rs is dropped along with it.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pulls in the matching ant-protocol branch which transitively pulls
the saorsa-core and saorsa-transport branches with the bootstrap
cache code removed. Required for this ant-client branch to build.

Co-Authored-By: Claude Opus 4.7 (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.

1 participant