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 f4f6021

Browse files
committedNov 7, 2022
double workers to maximize throughput
1 parent 71ae54e commit f4f6021

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/get/manager/DownloadManger.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ export class DownloadManger {
1616
constructor (requestConfig: GETRequestConfig, metadata: Metadata) {
1717
this.requestConfig = requestConfig
1818
this.metadata = metadata
19-
this.workers = requestConfig.inputs.map(
19+
const inputs = this.requestConfig.inputs
20+
const workerInputs = [...inputs, ...inputs]
21+
this.workers = workerInputs.map(
2022
(input) => new DownloadWorker(input, requestConfig)
2123
)
2224
requestConfig.logger.info(`Workers Count: ${this.workers.length}`)

0 commit comments

Comments
 (0)
Please sign in to comment.