libp2p / go-libp2p-pubsub

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

How can I addPeer for Topic after Connected event ? #382

Closed cc14514 closed 4 years ago

cc14514 commented 4 years ago

I Just find one way to add peer for pubsub , that is Connected event, but some times we would like create Topic after connect , then Topic's peers is nil now, how can I addPeer for Topic ?

cc14514 commented 4 years ago

I get it , may be pubsub.WithReadiness can do that.

TianshuDing commented 3 years ago

Hi, I have the same question about this, how you fix this?