Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

fix: use abstract stream class from muxer interface module #165

Merged
merged 10 commits into from
May 17, 2023

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented May 15, 2023

Refactors the stream class in this module to use the abstract superclass from @libp2p/interface-stream-muxer as it handles all the various scenarios for closing streams which this module does not.

Fixes #164

There don't appear to be any tests that assert one node can actually
dial another over webrtc and send some data so this PR adds one.
@achingbrain
Copy link
Member Author

Refs: #164

@achingbrain achingbrain changed the title test: add a dial test fix: use abstract stream class from muxer interface module May 17, 2023
@achingbrain
Copy link
Member Author

This should land after #147 as it'll cause a lot of merge conflicts.

@achingbrain achingbrain requested a review from maschad May 17, 2023 08:09
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.

LGTM

@achingbrain achingbrain merged commit 32f68de into main May 17, 2023
@achingbrain achingbrain deleted the test/add-simple-dial-test branch May 17, 2023 14:42
github-actions bot pushed a commit that referenced this pull request May 17, 2023
## [2.0.4](v2.0.3...v2.0.4) (2023-05-17)

### Bug Fixes

* use abstract stream class from muxer interface module ([#165](#165)) ([32f68de](32f68de)), closes [#164](#164)
@github-actions
Copy link

🎉 This PR is included in version 2.0.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@achingbrain achingbrain mentioned this pull request May 18, 2023
2 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Streams are never closed
2 participants