mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-03-16 07:30:51 +00:00
docs: add missing commas to readme example (#216)
This commit is contained in:
parent
1c10842bd3
commit
cc51fa59f9
10
README.md
10
README.md
@ -119,7 +119,7 @@ const defaultsDeep = require('@nodeutils/defaults-deep')
|
||||
class Node extends libp2p {
|
||||
constructor (_peerInfo, _peerBook, _options) {
|
||||
const defaults = {
|
||||
peerInfo: _peerInfo // The Identity of your Peer
|
||||
peerInfo: _peerInfo, // The Identity of your Peer
|
||||
peerBook: _peerBook, // Where peers get tracked, if undefined libp2p will create one instance
|
||||
|
||||
// The libp2p modules for this libp2p bundle
|
||||
@ -134,12 +134,12 @@ class Node extends libp2p {
|
||||
],
|
||||
connEncryption: [
|
||||
SECIO
|
||||
]
|
||||
],
|
||||
peerDiscovery: [
|
||||
MulticastDNS
|
||||
],
|
||||
peerRouting: {}, // Currently both peerRouting and contentRouting are patched through the DHT,
|
||||
contentRouting: {} // this will change once we factor that into two modules, for now do the following line:
|
||||
contentRouting: {}, // this will change once we factor that into two modules, for now do the following line:
|
||||
dht: DHT // DHT enables PeerRouting, ContentRouting and DHT itself components
|
||||
},
|
||||
|
||||
@ -164,13 +164,13 @@ class Node extends libp2p {
|
||||
enabled: false,
|
||||
active: false
|
||||
}
|
||||
}
|
||||
},
|
||||
// Enable/Disable Experimental features
|
||||
EXPERIMENTAL: { // Experimental features ("behind a flag")
|
||||
pubsub: false,
|
||||
dht: false
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// overload any defaults of your bundle using https://github.com/nodeutils/defaults-deep
|
||||
|
Loading…
x
Reference in New Issue
Block a user