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

fix: do not treat stream source as pushable #211

Merged
merged 2 commits into from
Sep 8, 2022

Conversation

wemeetagain
Copy link
Member

Alternative to #192

Since the source and sink properties may be changed by downstream code (eg: in libp2p after multiselect completes), the muxer shouldn't rely on the initial source implementation staying the same.

Instead, any functionality needed by the muxer is exposed as an additional function attached to the stream.
And any functionality needed by the stream internally is used by referencing a private variable whose reference cannot change.

@achingbrain achingbrain changed the title chore: do not treat stream source as pushable fix: do not treat stream source as pushable Sep 8, 2022
@achingbrain achingbrain merged commit 359c103 into master Sep 8, 2022
@achingbrain achingbrain deleted the chore/reorganize-stream-source-2 branch September 8, 2022 11:20
github-actions bot pushed a commit that referenced this pull request Sep 8, 2022
## [5.2.1](v5.2.0...v5.2.1) (2022-09-08)

### Bug Fixes

* do not treat stream source as pushable ([#211](#211)) ([359c103](359c103))
@github-actions
Copy link

github-actions bot commented Sep 8, 2022

🎉 This PR is included in version 5.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants