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(coreapi): tag all explicit connect requests in the connection manager #6171

Merged
merged 1 commit into from
Apr 3, 2019

Conversation

Stebalien
Copy link
Member

@Stebalien Stebalien commented Apr 3, 2019

This doesn't stop us from cutting these connections but indicates that there's some hidden usefulness to them.

fixes #6164

@Stebalien Stebalien requested a review from Kubuxu as a code owner April 3, 2019 16:58
@ghost ghost assigned Stebalien Apr 3, 2019
@ghost ghost added the status/in-progress In progress label Apr 3, 2019
@Stebalien Stebalien requested a review from magik6k April 3, 2019 16:58
…nager

This doesn't _stop_ us from cutting these connections but indicates that there's
some hidden usefulness to them.

fixes #6164

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
@Stebalien Stebalien mentioned this pull request Apr 3, 2019
9 tasks
@Stebalien Stebalien merged commit 81b1cfe into master Apr 3, 2019
@Stebalien Stebalien deleted the fix/6164 branch April 3, 2019 17:45
@ghost ghost removed the status/in-progress In progress label Apr 3, 2019
@@ -36,7 +40,12 @@ func (api *SwarmAPI) Connect(ctx context.Context, pi pstore.PeerInfo) error {
swrm.Backoff().Clear(pi.ID)
}

return api.peerHost.Connect(ctx, pi)
if err := api.peerHost.Connect(ctx, pi); err == nil {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this have been err != nil?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️

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

Successfully merging this pull request may close these issues.

Tagging of connections with ipfs swarm connect
3 participants