This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree 2 files changed +8
-4
lines changed
packages/ipfs/src/core/runtime
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
- const Bootstrap = require ( 'libp2p-bootstrap' )
4
3
const WS = require ( 'libp2p-websockets' )
5
4
const WebRTCStar = require ( 'libp2p-webrtc-star' )
6
5
const Multiplex = require ( 'libp2p-mplex' )
@@ -36,7 +35,10 @@ module.exports = () => {
36
35
config : {
37
36
peerDiscovery : {
38
37
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 : {
40
42
enabled : true
41
43
} ,
42
44
[ WebRTCStar . tag ] : {
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
- const Bootstrap = require ( 'libp2p-bootstrap' )
4
3
const TCP = require ( 'libp2p-tcp' )
5
4
const MulticastDNS = require ( 'libp2p-mdns' )
6
5
const WS = require ( 'libp2p-websockets' )
@@ -42,7 +41,10 @@ module.exports = () => {
42
41
[ MulticastDNS . tag ] : {
43
42
enabled : true
44
43
} ,
45
- [ Bootstrap . tag ] : {
44
+ // Optimization
45
+ // Requiring bootstrap inline in components/libp2p to speed up start-up time
46
+ // [Bootstrap.tag] = 'bootstrap'
47
+ bootstrap : {
46
48
enabled : true
47
49
}
48
50
} ,
You can’t perform that action at this time.
0 commit comments