Skip to content

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.

4 participants