Commit Graph

3 Commits

Author SHA1 Message Date
Adin Schmahmann 4fc98a00af chore: update libp2p discovery 2020-04-23 14:23:22 +03:00
Steven Allen e2e0d9ee35
fix: fix a busy loop while offline (#278)
If advertising fails, we should wait and retry instead of busy looping.

fixes https://github.com/ipfs/go-ipfs/issues/7049
2020-04-06 23:26:05 -07:00
Adin Schmahmann f9c26c2e68 Added libp2p discovery capabilities to PubSub.
When the WithDiscovery option is passed to PubSub then PubSub will be able to search for more peers that are interested in our topics.

This includes the ability for Publishes (via Topic.Publish()) to block until the router is ready to publish. When a router is ready is currently defined by a combination of a user defined MinTopicSize function (passed into topic.Publish via the WithReadiness publish option) and the properties of the pubsub router used. The discovery tests show example usage.
2019-10-31 16:39:18 -04:00