mirror of https://github.com/nodejs/node.git
benchmark: fix webstream pipe-to
PR-URL: https://github.com/nodejs/node/pull/49552 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>pull/49542/head
parent
3163f8d680
commit
7bf29b52b3
|
@ -18,7 +18,7 @@ async function main({ n, highWaterMarkR, highWaterMarkW }) {
|
|||
const rs = new ReadableStream({
|
||||
highWaterMark: highWaterMarkR,
|
||||
pull: function(controller) {
|
||||
if (i++ === n) {
|
||||
if (i++ < n) {
|
||||
controller.enqueue(b);
|
||||
} else {
|
||||
controller.close();
|
||||
|
|
Loading…
Reference in New Issue