Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicated connection limits checks #6156

Merged
merged 6 commits into from
Oct 11, 2024

Conversation

jxs
Copy link
Member

@jxs jxs commented Jul 23, 2024

Issue Addressed

Following #6140 (review) found duplicated code and took the time to improve the wording with regards to dial logic.

Reviewing by commit is suggested as I left detailed notes on the commit messages.

@AgeManning if you feel it contains too many code changes we should probably wait for after 5.3 release.

jxs added 3 commits July 23, 2024 23:46
and remove connection limits checks after connection has been established,

as those checks have already been done by connection limits Behaviour.
when we call dial_peer we are not yet dialing but just adding the peer to the dial queue
we only use it at one place, and the function call is explicit.
@chong-he chong-he added ready-for-review The code is ready for review Networking labels Jul 24, 2024
Copy link
Member

@AgeManning AgeManning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good. We should test it a bit to make sure it does what we expect.

@AgeManning
Copy link
Member

bumping this

@jxs
Copy link
Member Author

jxs commented Oct 11, 2024

@Mergifyio queue

Copy link

mergify bot commented Oct 11, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 17711b7

mergify bot added a commit that referenced this pull request Oct 11, 2024
@mergify mergify bot merged commit 17711b7 into sigp:unstable Oct 11, 2024
29 checks passed
@jxs jxs deleted the remove-dial-error-denied branch October 11, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Networking ready-for-review The code is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants