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!: remove peer refresh #1731

Merged
merged 3 commits into from
May 5, 2023
Merged

fix!: remove peer refresh #1731

merged 3 commits into from
May 5, 2023

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented May 4, 2023

js-libp2p occasionally gets all peer routers to run a query for it's own node id.

The only module that actually requires this is kad-dht in order to insure it has peers when it runs a query and it does this anyway since it's part of the spec.

libp2p/js-libp2p-kad-dht#457 also updates kad-dht to pause all executed queries until the self-query has run.

Consequently this is redundant and just creates unnecessary work.

BREAKING CHANGE: the redundant internal peer refresh have been removed along with the peerRouting.refreshManager config key

js-libp2p occasionally gets all peer routers to run a query for it's
own node id.

The only module that actually requires this is kad-dht in order to
insure it has peers when it runs a query and it does this anyway since
it's part of the spec.

libp2p/js-libp2p-kad-dht#457 also updates kad-dht
to pause all executed queries until the self-query has run.

Consequently this is redundant and just creates unecessary work.
@achingbrain achingbrain requested a review from maschad May 4, 2023 06:14
@achingbrain achingbrain changed the title fix: remove peer refresh fix!: remove peer refresh May 4, 2023
Copy link
Member

@wemeetagain wemeetagain left a comment

Choose a reason for hiding this comment

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

love 🟥 🟥 🟥

@achingbrain achingbrain merged commit 0d46c78 into master May 5, 2023
@achingbrain achingbrain deleted the fix/remove-peer-refresh branch May 5, 2023 06:20
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