File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ const defaultsDeep = require('@nodeutils/defaults-deep')
119119class Node extends libp2p {
120120 constructor (_peerInfo , _peerBook , _options ) {
121121 const defaults = {
122- peerInfo: _peerInfo // The Identity of your Peer
122+ peerInfo: _peerInfo, // The Identity of your Peer
123123 peerBook: _peerBook, // Where peers get tracked, if undefined libp2p will create one instance
124124
125125 // The libp2p modules for this libp2p bundle
@@ -134,12 +134,12 @@ class Node extends libp2p {
134134 ],
135135 connEncryption: [
136136 SECIO
137- ]
137+ ],
138138 peerDiscovery: [
139139 MulticastDNS
140140 ],
141141 peerRouting: {}, // Currently both peerRouting and contentRouting are patched through the DHT,
142- contentRouting: {} // this will change once we factor that into two modules, for now do the following line:
142+ contentRouting: {}, // this will change once we factor that into two modules, for now do the following line:
143143 dht: DHT // DHT enables PeerRouting, ContentRouting and DHT itself components
144144 },
145145
@@ -164,13 +164,13 @@ class Node extends libp2p {
164164 enabled: false ,
165165 active: false
166166 }
167- }
167+ },
168168 // Enable/Disable Experimental features
169169 EXPERIMENTAL : { // Experimental features ("behind a flag")
170170 pubsub: false ,
171171 dht: false
172172 }
173- },
173+ }
174174 }
175175
176176 // overload any defaults of your bundle using https://github.com/nodeutils/defaults-deep
You can’t perform that action at this time.
0 commit comments