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

Feat/backoff clear connect #2941

Merged
merged 3 commits into from
Jul 5, 2016
Merged

Conversation

whyrusleeping
Copy link
Member

Resolves #2456

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
@Kubuxu
Copy link
Member

Kubuxu commented Jul 4, 2016

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.

@Kubuxu
Copy link
Member

Kubuxu commented Jul 5, 2016

Other thing: should we have tests for it?

@whyrusleeping whyrusleeping added this to the ipfs-0.4.3 milestone Jul 5, 2016
@whyrusleeping
Copy link
Member Author

@Kubuxu Yeah, we should probably have tests for this. But i'm not sure how to reliably do them.
I'll take a hack at it before merging this.

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
@Kubuxu
Copy link
Member

Kubuxu commented Jul 5, 2016

LGTM let's wait for the test.

@Kubuxu Kubuxu added RFM and removed need_tests labels Jul 5, 2016
@whyrusleeping whyrusleeping merged commit a692dba into master Jul 5, 2016
@whyrusleeping whyrusleeping deleted the feat/backoff-clear-connect branch July 5, 2016 22:19
@@ -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)
Copy link
Member

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

ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this pull request Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants