-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Feat/backoff clear connect #2941
Conversation
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
LGTM I don't know but last time I looked at it it was hidden much deeper (even including the go-libp2p patch) but it might have been me not knowing libp2p back then at all. |
Other thing: should we have tests for it? |
@Kubuxu Yeah, we should probably have tests for this. But i'm not sure how to reliably do them. |
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
LGTM let's wait for the test. |
@@ -241,6 +249,8 @@ ipfs swarm connect /ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3 | |||
|
|||
output := make([]string, len(pis)) | |||
for i, pi := range pis { | |||
swrm.Backoff().Clear(pi.ID) |
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.
this is leaking the underlying abstraction. can this be turned into something more "user/client" oriented? Not sure what name would fit
Feat/backoff clear connect
Resolves #2456