Skip to content

Commit

Permalink
chore: pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Aug 2, 2023
1 parent 61ba47b commit 2751450
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/muxer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ export class YamuxMuxer implements StreamMuxer {
options.signal = options.signal ?? AbortSignal.timeout(CLOSE_TIMEOUT)

try {
// If err is provided, abort all underlying streams, else close all underlying streams
await Promise.all(
[...this._streams.values()].map(async s => s.close(options))
)
Expand Down
5 changes: 4 additions & 1 deletion src/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ export class YamuxStream extends AbstractStream {

/**
* Send a message to the remote muxer informing them a new stream is being
* opened
* opened.
*
* This is a noop for Yamux because the first window update is sent when
* .newStream is called on the muxer which opens the stream on the remote.
*/
async sendNewStream (): Promise<void> {

Expand Down

0 comments on commit 2751450

Please sign in to comment.