Skip to content

Commit

Permalink
chore: Iterate gossipsub. Changes to gossipsub options.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenyoung committed Apr 18, 2024
1 parent 7ff642b commit 1a533e6
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 129 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Libp2pOptions = {
services: {
pubsub: gossipsub({
// neccessary to run a single peer
allowPublishToZeroPeers: true
allowPublishToZeroTopicPeers: true
}),
identify: identify()
}
Expand Down
4 changes: 2 additions & 2 deletions docs/GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ A simple Node.js example might look something like:
streamMuxers: [yamux()],
services: {
identify: identify(),
pubsub: gossipsub({ allowPublishToZeroPeers: true })
pubsub: gossipsub({ allowPublishToZeroTopicPeers: true })
}
}
```
Expand Down Expand Up @@ -83,7 +83,7 @@ export const Libp2pOptions = {
streamMuxers: [yamux()],
services: {
identify: identify(),
pubsub: gossipsub({ allowPublishToZeroPeers: true })
pubsub: gossipsub({ allowPublishToZeroTopicPeers: true })
}
}
```
Expand Down

0 comments on commit 1a533e6

Please sign in to comment.