-
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
Remove signal bootstrapping #224
Conversation
Remove IpfsDHT.BootstrapOnSignal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree it doesn't really belong but... it's used in ipfs-cluster. cc @hsanjuan
There's a failing test but I believe it's unrelated, and I'm going to move on (and maybe fix that test in another PR). |
Hey, we use this. We need this. Why was this merged without even giving me the chance to explain why it's useful? |
At least explain what the workaround is. |
people please refrain merging those refactorings before the stakeholders can review! |
FYI, this is used because it is impossible to make the DHT do a bootstrap round at a certain moment. For example, if a new peer is added is added to a cluster, that peer needs to bootstrap ASAP, not wait for the next automatic bootstrap round. I don't think there is an equivalent way to manually trigger a bootstrap round. |
@hsanjuan Thanks for the clarification. I don't find any other uses of BootstrapOnSignal other than the one in ipfs-cluster. It looks like the actual desired API is a synchronous Bootstrap method. I propose instead to add a method that does a single bootstrap synchronously. |
@anacrolix In the future, please don't knowingly break someone else's code without their input (or very careful consideration). |
This has been rolled into #225. |
Remove IpfsDHT.BootstrapOnSignal. This is behaviour that can be achieved without intruding on IpfsDHT. It's not used elsewhere. The tests are retained and adapted to work without the method.