mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
stream: optimize pipeTo promise handling
Signed-off-by: Matteo Collina <hello@matteocollina.com> PR-URL: https://github.com/nodejs/node/pull/63572 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
1 parent
a2b9095e03
commit
3d91aeb434
1 file changed
+1
-1
@@ -1569,7 +1569,7 @@ function readableStreamPipeTo(
|
||||
}
|
||||
|
||||
// Write the chunk - we're already in a separate microtask from enqueue
|
||||
// because we awaited writer[kState].ready.promise above
|
||||
// because we awaited writer[kState].ready.promise above.
|
||||
state.currentWrite = writableStreamDefaultWriterWrite(writer, chunk);
|
||||
setPromiseHandled(state.currentWrite);
|
||||
|
||||
|
||||
Reference in new issue
Block a user