Skip to content

Commit 25504ae

Browse files
bradwbradwmaschad
authored andcommitted
docs: Update README.md configure pubsub as a service module (#1802)
Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
1 parent 8c6b6d2 commit 25504ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/pubsub/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ const createNode = async () => {
3636
transports: [tcp()],
3737
streamMuxers: [yamux(), mplex()],
3838
connectionEncryption: [noise()],
39-
// we add the Pubsub module we want
40-
pubsub: gossipsub({ allowPublishToZeroPeers: true })
39+
services: {
40+
// we add the Pubsub module we want
41+
pubsub: gossipsub({ allowPublishToZeroPeers: true })
42+
}
4143
})
4244

4345
return node

0 commit comments

Comments
 (0)