libp2p / go-libp2p-pubsub

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

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

Closed vyzo closed 10 months ago

vyzo commented 10 months 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 10 months ago

cc @chaitanyaprem