libp2p / go-libp2p-pubsub

The PubSub implementation for go-libp2p
https://github.com/libp2p/specs/tree/master/pubsub
Other
321 stars 185 forks source link

Define a public error for sub.Next() on a cancelled subscription #356

Closed prestonvanloon closed 4 years ago

prestonvanloon commented 4 years ago

We find this error happens often in Prysm with our frequently changing pubsub topic subscriptions. We would like to ignore this error by referencing the publicly defined ErrSubscriptionCancelled.

Context: https://github.com/prysmaticlabs/prysm/issues/6449