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

add a context to NewStream, remove the NewStreamTimeout #82

Merged
merged 1 commit into from
Dec 19, 2020

Conversation

marten-seemann
Copy link
Contributor

Needed for libp2p/go-libp2p-mplex#22.

Not the cleanest code I've written, but making this clean would require a larger refactoring. This sendMsg function with its two channels is just... weird.

@Stebalien
Copy link
Member

This sendMsg function with its two channels is just... weird.

Yeah... but we're trying to avoid a goroutine per write to join two contexts (or, worse, passing down two contexts).

@marten-seemann marten-seemann merged commit e2742ec into master Dec 19, 2020
@marten-seemann marten-seemann deleted the new-stream-context branch December 19, 2020 08:03
@aschmahmann aschmahmann mentioned this pull request Feb 18, 2021
73 tasks
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.

2 participants