We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7478a38 commit b9a145aCopy full SHA for b9a145a
src/get/config/default/selectRangeStrategy.ts
@@ -1,16 +1,16 @@
1
type RangeIndex = number
2
3
-const threshold = 10
+// const threshold = 10
4
5
export function defaultSelectRangeStrategy (
6
downloaderCounter: Map<RangeIndex, number>
7
): RangeIndex {
8
const minRangeIndex = getMapMinOrZero(downloaderCounter)
9
- const firstIndex = downloaderCounter.keys().next().value as number
+ // const firstIndex = downloaderCounter.keys().next().value as number
10
11
- if (minRangeIndex - firstIndex > threshold) {
12
- return firstIndex
13
- }
+ // if (minRangeIndex - firstIndex > threshold) {
+ // return firstIndex
+ // }
14
15
return minRangeIndex
16
}
0 commit comments