Skip to content

Commit cc51fa5

Browse files
mkg20001daviddias
authored andcommitted
docs: add missing commas to readme example (#216)
1 parent 1c10842 commit cc51fa5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const defaultsDeep = require('@nodeutils/defaults-deep')
119119
class 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

0 commit comments

Comments
 (0)