You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am using the DHT mechanism for peer discovery. The pubsub lets you pass in a discovery object at startup which is great and simplifies the discovery process a lot since I don’t have to now right the ongoing Advertise and FindPeer calls for peers subscribed to same topic to find each other.
However, if I start a node initially with no peers (no connections), subscribe to a topic and then connect it to the peer running the DHT discovery, it fails to find other peers subscribed on the same topic.
The reason for it is that on this line the HandleDiscovery returns immediately with the error: error finding peers and unfortunately for that topic discovery loop stops.
The text was updated successfully, but these errors were encountered:
Hi,
I am using the DHT mechanism for peer discovery. The pubsub lets you pass in a discovery object at startup which is great and simplifies the discovery process a lot since I don’t have to now right the ongoing Advertise and FindPeer calls for peers subscribed to same topic to find each other.
However, if I start a node initially with no peers (no connections), subscribe to a topic and then connect it to the peer running the DHT discovery, it fails to find other peers subscribed on the same topic.
The reason for it is that on this line the HandleDiscovery returns immediately with the error:
error finding peers
and unfortunately for that topic discovery loop stops.The text was updated successfully, but these errors were encountered: