ipfs / js-ipfs

IPFS implementation in JavaScript
https://js.ipfs.tech
Other
7.44k stars 1.25k forks source link

fix: disallow publishing pubsub messages to zero peers #4286

Closed achingbrain closed 1 year ago

achingbrain commented 1 year ago

Use the default gossipsub behaviour of not allowing publishing message to zero peers.

If a user publishes a message they may be suprised to find it's not been recieved by anyone, so instead an error should be thrown when there are no peers that will receive a message.