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

Commit b450890

Browse files
authored
chore: update libp2p runtime config (#3092)
This PR removes the websocketStar discovery configuration, since it is not used anymore.
1 parent 19b8113 commit b450890

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

packages/ipfs/src/core/runtime/libp2p-browser.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,13 @@ module.exports = () => {
3535
config: {
3636
peerDiscovery: {
3737
autoDial: true,
38+
// [Bootstrap.tag] = 'bootstrap'
3839
bootstrap: {
3940
enabled: true
4041
},
42+
// [WebRTCStar.discovery.tag]
4143
webRTCStar: {
4244
enabled: true
43-
},
44-
websocketStar: {
45-
enabled: true
4645
}
4746
},
4847
dht: {

packages/ipfs/src/core/runtime/libp2p-nodejs.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ module.exports = () => {
3838
config: {
3939
peerDiscovery: {
4040
autoDial: true,
41-
mdns: {
41+
[MulticastDNS.tag]: {
4242
enabled: true
4343
},
44+
// Optimization
45+
// Requiring bootstrap inline in components/libp2p to reduce the cli execution time
46+
// [Bootstrap.tag] = 'bootstrap'
4447
bootstrap: {
4548
enabled: true
46-
},
47-
websocketStar: {
48-
enabled: true
4949
}
5050
},
5151
dht: {

packages/ipfs/test/core/libp2p.spec.js

-3
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,6 @@ describe('libp2p customization', function () {
144144
},
145145
webRTCStar: {
146146
enabled: false
147-
},
148-
websocketStar: {
149-
enabled: true
150147
}
151148
},
152149
pubsub: {

0 commit comments

Comments
 (0)