Skip to content

Commit e8c74d1

Browse files
KhafraDevcrysmags
authored andcommitted
remove useless options in web streams (nodejs#2729)
1 parent 29942da commit e8c74d1

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/fetch/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,6 @@ function fetchFinale (fetchParams, response) {
11921192
controller.enqueue(value)
11931193
}
11941194
},
1195-
queuingStrategy: new ByteLengthQueuingStrategy({ highWaterMark: 16384 }),
11961195
type: 'bytes'
11971196
})
11981197

@@ -2007,7 +2006,6 @@ async function httpNetworkFetch (
20072006
// cancelAlgorithm set to cancelAlgorithm.
20082007
const stream = new ReadableStream(
20092008
{
2010-
highWaterMark: 16384,
20112009
async start (controller) {
20122010
fetchParams.controller.controller = controller
20132011
},
@@ -2017,8 +2015,7 @@ async function httpNetworkFetch (
20172015
async cancel (reason) {
20182016
await cancelAlgorithm(reason)
20192017
},
2020-
type: 'bytes',
2021-
queuingStrategy: new ByteLengthQueuingStrategy({ highWaterMark: 16384 })
2018+
type: 'bytes'
20222019
}
20232020
)
20242021

0 commit comments

Comments
 (0)