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

chore: update libp2p runtime config #3092

Merged
merged 5 commits into from
Jul 24, 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
5 changes: 2 additions & 3 deletions packages/ipfs/src/core/runtime/libp2p-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,13 @@ module.exports = () => {
config: {
peerDiscovery: {
autoDial: true,
// [Bootstrap.tag] = 'bootstrap'
bootstrap: {
enabled: true
},
// [WebRTCStar.discovery.tag]
webRTCStar: {
enabled: true
},
websocketStar: {
enabled: true
}
},
dht: {
Expand Down
8 changes: 4 additions & 4 deletions packages/ipfs/src/core/runtime/libp2p-nodejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ module.exports = () => {
config: {
peerDiscovery: {
autoDial: true,
mdns: {
[MulticastDNS.tag]: {
enabled: true
},
// Optimization
// Requiring bootstrap inline in components/libp2p to reduce the cli execution time
// [Bootstrap.tag] = 'bootstrap'
bootstrap: {
enabled: true
},
websocketStar: {
enabled: true
}
},
dht: {
Expand Down
3 changes: 0 additions & 3 deletions packages/ipfs/test/core/libp2p.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ describe('libp2p customization', function () {
},
webRTCStar: {
enabled: false
},
websocketStar: {
enabled: true
}
},
pubsub: {
Expand Down