Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

feat: libp2p async peerstore #4018

Merged
merged 49 commits into from
Jan 27, 2022
Merged

feat: libp2p async peerstore #4018

merged 49 commits into from
Jan 27, 2022

Conversation

achingbrain
Copy link
Member

Refactors interfaces and classes used by libp2p-interfaces to use the async peer store from libp2p/js-libp2p#1058

Fixes memory leak in libp2p, discussion in linked issue above.

BREAKING CHANGE: peerstore methods are now all async

Refactors interfaces and classes used by `libp2p-interfaces` to use the async peer store from libp2p/js-libp2p#1058

Fixes memory leak in libp2p, discussion in linked issue above.

BREAKING CHANGE: peerstore methods are now all async
So we don't negatively impact performance, cache the most recent peer
store data in memory to avoid database access for recently seen peers.

Expose the number of peers cached in config.
@achingbrain achingbrain merged commit a6b201a into master Jan 27, 2022
@achingbrain achingbrain deleted the feat/async-peerstore branch January 27, 2022 15:08
SgtPooki referenced this pull request in ipfs/js-kubo-rpc-client Aug 18, 2022
Refactors interfaces and classes used by `libp2p-interfaces` to use the async peer store from libp2p/js-libp2p#1058

Fixes memory leak in libp2p, discussion in linked issue above.

BREAKING CHANGE: peerstore methods are now all async, the repo is migrated to v12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant