Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

read and use the direction from the simultaneous connect context #277

Merged
merged 1 commit into from
Sep 8, 2021

Conversation

marten-seemann
Copy link
Contributor

This depends on go-libp2p-core with libp2p/go-libp2p-core#210 merged. Will rebase this PR once v0.10.0 is out.

if simConnect, reason := network.GetSimultaneousConnect(ctx); simConnect {
dialCtx = network.WithSimultaneousConnect(dialCtx, reason)
if simConnect, isClient, reason := network.GetSimultaneousConnect(ctx); simConnect {
dialCtx = network.WithSimultaneousConnect(dialCtx, isClient, reason)
Copy link
Member

Choose a reason for hiding this comment

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

We really should have a test for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, but this has to wait until we have the SecureTransport / SecureMuxer changes in place.

@marten-seemann
Copy link
Contributor Author

go-libp2p-core v0.10.0 has multiple breaking changes, so we can't just use that version without also fixing the other changes. I'll keep this PR as is. Note that it references go-libp2p-core@094b0d3f8ba2, which is a commit on master, so that import path should be safe from garbage collection.

@marten-seemann marten-seemann merged commit c85b0b4 into master Sep 8, 2021
@marten-seemann marten-seemann deleted the sim-connect-context-direction branch September 8, 2021 16:29
@aschmahmann aschmahmann mentioned this pull request Dec 1, 2021
80 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants