libp2p / go-libp2p-pubsub

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

Revert "fix: topicscore params can't be set for dynamically subscribed topic" #541

Closed vyzo closed 1 year ago

vyzo commented 1 year ago

Reverts libp2p/go-libp2p-pubsub#540

This needs to be reverted; the check was necessary and not impeding the setting. Without the check, if the topic score params did not previously exist, it will crash with nil pointer dereference.

vyzo commented 1 year ago

cc @chaitanyaprem