Skip to content

Commit 071468f

Browse files
committed
chore: update readme constructor example
1 parent 7aae306 commit 071468f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ TODO: add explanation for registrar!
5050
const Pubsub = require('libp2p-pubsub')
5151

5252
class PubsubImplementation extends Pubsub {
53-
constructor({ peerInfo, registrar, ...options })
53+
constructor({ peerId, registrar, ...options })
5454
super({
5555
debugName: 'libp2p:pubsub',
5656
multicodecs: '/pubsub-implementation/1.0.0',
57-
peerInfo: peerInfo,
57+
peerId: peerId,
5858
registrar: registrar,
5959
signMessages: options.signMessages,
6060
strictSigning: options.strictSigning

0 commit comments

Comments
 (0)