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

How can i use different pubsub peerFilter with different topic in one GossipSub instance #514

Closed brankLY closed 1 year ago

brankLY commented 1 year ago

i want one topic - one peerFilter when publish msgA, use peerFilterA to filter peers from host peerstore

vyzo commented 1 year ago

you can write a composite filter easily, the interface allows for the functionality you want.