Skip to content

Commit b426a13

Browse files
committed
fixup: allow overriding writableHighWaterMark
1 parent 71d66ec commit b426a13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/streams/transform.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ function Transform(options) {
9595
...options,
9696
highWaterMark: null,
9797
readableHighWaterMark,
98-
// TODO (ronag) This is not optimal since we have
98+
// TODO (ronag): 0 is not optimal since we have
9999
// a "bug" where we check needDrain before calling _write and not after.
100100
// Refs: https://github.com/nodejs/node/pull/32887
101101
// Refs: https://github.com/nodejs/node/pull/35941
102-
writableHighWaterMark: 0
102+
writableHighWaterMark: options.writableHighWaterMark || 0
103103
};
104104
}
105105

0 commit comments

Comments
 (0)