-
Notifications
You must be signed in to change notification settings - Fork 226
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
how to wait until DHT bootstrap ready? #989
Comments
if use time.sleep(1 * time.Second) ,peerChan might receive no peers sometimes (8/10 chance failed get peers),if increase to 10 *second , will get peer success everytime |
If you have access to the instance of the DHT object, one way to do it is probably calling |
just like this right?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the chat with rendezvous example use time.sleep(1 * time.Second) instead of block until bootstrap ready
how to wait until bootstrap ready in product env?
i see wait 1sec for bootstrap can not find peers stable, but 10 sec will be more stable,what is the correct way to block it ?
The text was updated successfully, but these errors were encountered: