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

Commit 9fe4afb

Browse files
committed
chore: add comment for requiring bootstrap in components libp2p
1 parent 30e7024 commit 9fe4afb

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict'
22

3-
const Bootstrap = require('libp2p-bootstrap')
43
const WS = require('libp2p-websockets')
54
const WebRTCStar = require('libp2p-webrtc-star')
65
const Multiplex = require('libp2p-mplex')
@@ -36,7 +35,10 @@ module.exports = () => {
3635
config: {
3736
peerDiscovery: {
3837
autoDial: true,
39-
[Bootstrap.tag]: {
38+
// Optimization
39+
// Requiring bootstrap inline in components/libp2p to speed up start-up time
40+
// [Bootstrap.tag] = 'bootstrap'
41+
bootstrap: {
4042
enabled: true
4143
},
4244
[WebRTCStar.tag]: {

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict'
22

3-
const Bootstrap = require('libp2p-bootstrap')
43
const TCP = require('libp2p-tcp')
54
const MulticastDNS = require('libp2p-mdns')
65
const WS = require('libp2p-websockets')
@@ -42,7 +41,10 @@ module.exports = () => {
4241
[MulticastDNS.tag]: {
4342
enabled: true
4443
},
45-
[Bootstrap.tag]: {
44+
// Optimization
45+
// Requiring bootstrap inline in components/libp2p to speed up start-up time
46+
// [Bootstrap.tag] = 'bootstrap'
47+
bootstrap: {
4648
enabled: true
4749
}
4850
},

0 commit comments

Comments
 (0)