This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not treat stream source as pushable (#211)
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. Co-authored-by: achingbrain <alex@achingbrain.net>
- Loading branch information
1 parent
8facf2b
commit 359c103
Showing
3 changed files
with
27 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters