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

refactor!: remove per-peer parallel dialling #2163

Merged
merged 2 commits into from
Oct 31, 2023

Conversation

maschad
Copy link
Member

@maschad maschad commented Oct 18, 2023

Description

Since we are now dialling one peer at a time as a means of smarter dialling, we no longer need the option to control the concurrency of parallel dials across the multiaddrs of a single peer.

Closes #2090

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@maschad maschad marked this pull request as ready for review October 18, 2023 17:50
@maschad maschad requested a review from a team as a code owner October 18, 2023 17:50
@maschad maschad self-assigned this Oct 24, 2023

## Connection Manager

We now only dial one peer at a time as this is a more efficient use of resources. This means that the `maxParallelDialsPerPeer` option has been removed.
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this is right. We're removing parallel dials per peer, but not across peers.

Copy link
Member

@achingbrain achingbrain Oct 31, 2023

Choose a reason for hiding this comment

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

I've updated the note, hopefully it's clearer. It has a bit of the "why" as well as the "what" now.

@achingbrain achingbrain force-pushed the release-v1.0 branch 6 times, most recently from c347bf2 to c8b71d8 Compare October 31, 2023 09:05
Since we are now dialling one peer at a time as a means of smarter dialling, we
no longer need the option to control the concurrency of parallel dials across
a single peers' multiaddrs.

Closes libp2p#2090
@achingbrain achingbrain changed the title fix!: remove parallel dialling refactor!: remove per-peer parallel dialling Oct 31, 2023
@achingbrain achingbrain merged commit 66fbdb9 into libp2p:release-v1.0 Oct 31, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants