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

feat: persist peerstore #3072

Merged
merged 1 commit into from
Jun 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/ipfs/src/core/runtime/libp2p-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ module.exports = () => {
},
metrics: {
enabled: true
},
peerStore: {
persistence: true,
threshold: 1
}
}
}
3 changes: 3 additions & 0 deletions packages/ipfs/src/core/runtime/libp2p-nodejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ module.exports = () => {
},
metrics: {
enabled: true
},
peerStore: {
persistence: true
}
}
}