Skip to content

Commit

Permalink
fixup: allow overriding writableHighWaterMark
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Jul 11, 2022
1 parent 71d66ec commit b426a13
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit b426a13

Please sign in to comment.