Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup: allow overriding writableHighWaterMark
  • Loading branch information
ronag committed Jul 11, 2022
commit b426a13f2f472654e12f4023d7b1173eb0d23af0
4 changes: 2 additions & 2 deletions lib/internal/streams/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ function Transform(options) {
...options,
highWaterMark: null,
readableHighWaterMark,
// TODO (ronag) This is not optimal since we have
// TODO (ronag): 0 is not optimal since we have
// a "bug" where we check needDrain before calling _write and not after.
// Refs: https://github.com/nodejs/node/pull/32887
// Refs: https://github.com/nodejs/node/pull/35941
writableHighWaterMark: 0
writableHighWaterMark: options.writableHighWaterMark || 0
};
}

Expand Down