Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Oct 19, 2021
1 parent 7af13b5 commit f9af156
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/fs/streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const {
Array,
FunctionPrototypeBind,
MathMin,
MathMax,
ObjectDefineProperty,
ObjectSetPrototypeOf,
PromisePrototypeThen,
Expand Down Expand Up @@ -152,7 +153,7 @@ function ReadStream(path, options) {
// A little bit bigger buffer and water marks by default
options = copyObject(getOptions(options, {}));
if (options.highWaterMark === undefined)
options.highWaterMark = Math.max(Buffer.poolSize, 64 * 1024);
options.highWaterMark = MathMax(Buffer.poolSize, 64 * 1024);

if (options.autoDestroy === undefined) {
options.autoDestroy = false;
Expand Down

0 comments on commit f9af156

Please sign in to comment.