Skip to content

Commit

Permalink
Increase max number of concurrent downloads from 2 to 16
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartatz committed Jun 20, 2024
1 parent e46b47c commit b5184ca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,9 @@ class Downloader(
download.status = Download.State.DOWNLOADING

// Start downloading images, consider we can have downloaded images already
// Concurrently do 2 pages at a time
// Concurrently do 16 pages at a time
pageList.asFlow()
.flatMapMerge(concurrency = 2) { page ->
.flatMapMerge(concurrency = 16) { page ->
flow {
// Fetch image URL if necessary
if (page.imageUrl.isNullOrEmpty()) {
Expand Down

0 comments on commit b5184ca

Please sign in to comment.