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

fix: do not auto-dial connected peers #1730

Merged
merged 2 commits into from
May 4, 2023

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented May 4, 2023

When selecting peers to auto-dial, exclude peers we are already connected to in order to not swamp the dial queue with pointless dials. This reduces the amount of work browsers in particular have to do.

When selecting peers to auto-dial, exclude peers we are already
connected to in order to not swamp the dial queue with pointless
dials.  This makes browsers run a bit faster.
@achingbrain achingbrain requested a review from maschad May 4, 2023 06:15
@maschad maschad merged commit 94df577 into master May 4, 2023
@maschad maschad deleted the fix/do-not-auto-dial-connected-peers branch May 4, 2023 17:08
achingbrain added a commit that referenced this pull request May 5, 2023
Similar to #1730, filter auto-dial peers by peers already in the
dial queue.

The dial queue will join any pre-existing dial attempts for the
selected peers, but it just creates unnecessary work and adds noise
to the logs and filtering them out beforehand is cheap so just do that.
achingbrain added a commit that referenced this pull request May 9, 2023
Similar to #1730, filter auto-dial peers by peers already in the
dial queue.

The dial queue will join any pre-existing dial attempts for the
selected peers, but it just creates unnecessary work and adds noise
to the logs and filtering them out beforehand is cheap so just do that.
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.

3 participants