Skip to content

Commit

Permalink
chore: update readme constructor example
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Apr 22, 2020
1 parent 7aae306 commit 071468f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ TODO: add explanation for registrar!
const Pubsub = require('libp2p-pubsub')

class PubsubImplementation extends Pubsub {
constructor({ peerInfo, registrar, ...options })
constructor({ peerId, registrar, ...options })
super({
debugName: 'libp2p:pubsub',
multicodecs: '/pubsub-implementation/1.0.0',
peerInfo: peerInfo,
peerId: peerId,
registrar: registrar,
signMessages: options.signMessages,
strictSigning: options.strictSigning
Expand Down

0 comments on commit 071468f

Please sign in to comment.