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

fix: removing stream methods from connection interface #1829

Closed
wants to merge 1 commit into from

Conversation

mmsaki
Copy link

@mmsaki mmsaki commented Jun 15, 2023

Moving the discussion from this pull request, PR was originally opened in js-libp2p-interfaces before being moving to this monorepo

the muxers should be ultimately responsible for managing streams, that's why addStream and removeStream methods are being removed from the interface see

Fixes issue libp2p/js-libp2p#1855

Moving the discussion from [this pull request](libp2p/js-libp2p-interfaces#417), PR was originally opened in js-libp2p-interfaces before being moving to this monorepo

the muxers should be ultimately responsible for managing streams, that's why `addStream` and `removeStream` methods are being removed from the interface

https://github.com/libp2p/js-libp2p-interfaces/pull/417/files#r1230570032
Copy link
Member

@maschad maschad left a comment

Choose a reason for hiding this comment

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

Thanks for opening this PR, really appreciate the input. Given this is an interface though, it will cause a breaking change in any class that implements this interface could you remove the methods there as well?

@maschad maschad self-assigned this Jun 16, 2023
@achingbrain
Copy link
Member

It's probably worth rebasing this once #1833 is in as it'll show the full scope of the change across the stack.

@maschad maschad assigned mmsaki and unassigned maschad Jun 19, 2023
@mmsaki mmsaki changed the title fix: removed stream methods from connection interface breaking: removing stream methods from connection interface Jun 19, 2023
@mmsaki mmsaki changed the title breaking: removing stream methods from connection interface fix: removing stream methods from connection interface Jun 19, 2023
@maschad
Copy link
Member

maschad commented Aug 7, 2023

Closing in favour of #1912

@maschad maschad closed this Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Remove Stream methods from Connection interface
3 participants