Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ced973f

Browse files
KhafraDevcrysmags
authored andcommittedFeb 27, 2024
remove useless options in web streams (nodejs#2729)
1 parent 4004c0c commit ced973f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
 

‎lib/fetch/index.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,6 @@ function fetchFinale (fetchParams, response) {
11181118
controller.enqueue(value)
11191119
}
11201120
},
1121-
queuingStrategy: new ByteLengthQueuingStrategy({ highWaterMark: 16384 }),
11221121
type: 'bytes'
11231122
})
11241123

@@ -1933,7 +1932,6 @@ async function httpNetworkFetch (
19331932
// cancelAlgorithm set to cancelAlgorithm.
19341933
const stream = new ReadableStream(
19351934
{
1936-
highWaterMark: 16384,
19371935
async start (controller) {
19381936
fetchParams.controller.controller = controller
19391937
},
@@ -1943,8 +1941,7 @@ async function httpNetworkFetch (
19431941
async cancel (reason) {
19441942
await cancelAlgorithm(reason)
19451943
},
1946-
type: 'bytes',
1947-
queuingStrategy: new ByteLengthQueuingStrategy({ highWaterMark: 16384 })
1944+
type: 'bytes'
19481945
}
19491946
)
19501947

0 commit comments

Comments
 (0)
Please sign in to comment.