Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PubSub Discovery for at topic stops if node initially starts with no peers #442

Open
vishalchangrani opened this issue Aug 5, 2021 · 2 comments

Comments

@vishalchangrani
Copy link

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.

@dpatsora
Copy link

dpatsora commented Dec 13, 2021

+1

@asjdf
Copy link

asjdf commented Sep 21, 2023

Did you solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants