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

docs: migration guide -> missing import #2380

Merged
merged 1 commit into from
Jan 29, 2024
Merged

docs: migration guide -> missing import #2380

merged 1 commit into from
Jan 29, 2024

Conversation

SgtPooki
Copy link
Member

@SgtPooki SgtPooki commented Jan 26, 2024

migration guide (specifically https://github.com/libp2p/js-libp2p/blob/c9ed1c7d62e9af974789eb753d6f8e3c6410df94/doc/migrations/v0.46-v1.0.0.md#keeping-the-same-peerid-after-a-restart) was missing an import for Key. This may not be the correct import, but appears to be what libp2p/keychain and others are using.

related: #2317 once the correct import is added.

@SgtPooki SgtPooki requested a review from a team as a code owner January 26, 2024 16:21
Since `libp2p@0.46.10` we have only dialed one address at a time for each peer by setting the default value of the `ConnectionManager`'s `maxParallelDialsPerPeer` option to `1`. As of `libp2p@1.0.0` this option has been removed.
Copy link
Member Author

@SgtPooki SgtPooki Jan 26, 2024

Choose a reason for hiding this comment

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

this was directly from github UI, doing EOL fix?

Comment on lines 405 to 408
const node = await createLibp2p({
peerId,
peerId
// ... other options
})
Copy link
Member Author

Choose a reason for hiding this comment

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

these fixes come from pasting this code into a new file in an aegir project (helia) and fixing saving causing auto-fix. can revert if desired.

@achingbrain achingbrain merged commit 6f323de into main Jan 29, 2024
25 checks passed
@achingbrain achingbrain deleted the SgtPooki-patch-1 branch January 29, 2024 09:42
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