refactor: remove dead connect_dual_stack and try_connect_family methods#36
Merged
Merged
Conversation
Superseded by the Happy Eyeballs (RFC 8305) implementation which races all direct addresses with a 250ms stagger instead of sequential per-family attempts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Benchmark ResultsPerformance Comparison
SummaryConfiguration
|
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
connect_dual_stackandtry_connect_familymethods fromP2pEndpointIpAddrimport fromp2p_endpoint.rsTest plan
cargo check --all-targetspassescargo nextest runpasses (no tests referenced these methods)🤖 Generated with Claude Code
Greptile Summary
This PR removes two dead code methods —
connect_dual_stackandtry_connect_family— fromP2pEndpoint, along with the now-unusedIpAddrimport. A full-repo search confirms no callers existed anywhere in the codebase; dual-stack connectivity is already handled byconnect_with_fallback.Confidence Score: 5/5
Safe to merge — pure dead-code removal with no remaining references and no behavioral change.
All changes are removal of unreferenced methods and an unused import. A full-repo grep confirms zero callers exist, so there is no risk of regression.
No files require special attention.
Important Files Changed
connect_dual_stackandtry_connect_familymethods and the unusedIpAddrimport; no remaining references found anywhere in the repo.Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A[connect_with_fallback] --> B[Direct IPv4] A --> C[Direct IPv6] A --> D[Hole-Punch] A --> E[Relay] F[connect_dual_stack - REMOVED] -.->|was dead code| A G[try_connect_family - REMOVED] -.->|was dead code| FReviews (1): Last reviewed commit: "refactor: remove dead connect_dual_stack..." | Re-trigger Greptile