Skip to content

fix!: remove connection manager autodial option #1626

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

Merged
merged 3 commits into from
Mar 17, 2023

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Mar 15, 2023

The connection manager's autoDial option originally meant "dial every peer we discover". Then it changed to "if we have fewer than minConnections, dial peers from the peer store until we have more than minConnections".

This is confusing and also redundant, since if we don't want to dial peers to ensure we have more than minConnections we can just set minConnections to 0.

Adds a section to the upgrade guide covering the removal.

Also fixes a bug where we actually configured two autodialer components.

The connection manager's `autoDial` option originally meant "dial every
peer we discover".  Then it changed to "if we have fewer than `minConnections`,
dial peers from the peer store until we have more than `minConnections`".

This is confusing and also redundant, since if we don't want to dial
peers to ensure we have more than `minConnections` we can just set
`minConnections` to `0`.

Also fixes a bug where we actually configured two autodialer components.
@achingbrain achingbrain requested a review from maschad March 15, 2023 10:48
Copy link
Member

@maschad maschad left a comment

Choose a reason for hiding this comment

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

LGTM just left a minor linguistic suggestion.

Co-authored-by: Chad Nehemiah <[email protected]>
@achingbrain achingbrain merged commit da3526c into master Mar 17, 2023
@achingbrain achingbrain deleted the fix/remove-autodial-option branch March 17, 2023 07:29
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.

2 participants