Skip to content

Commit

Permalink
fix(gatsby-source-filesystem): Ensure fastq concurrency parameter of …
Browse files Browse the repository at this point in the history
…the correct type (#34186)
  • Loading branch information
pacahon committed Dec 6, 2021
1 parent c85a707 commit cada108
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -46,7 +46,11 @@ let showFlagWarning = !!process.env.GATSBY_EXPERIMENTAL_REMOTE_FILE_PLACEHOLDER
* Queue Management *
********************/

const queue = Queue(pushToQueue, process.env.GATSBY_CONCURRENT_DOWNLOAD || 200)
const GATSBY_CONCURRENT_DOWNLOAD = process.env.GATSBY_CONCURRENT_DOWNLOAD
? parseInt(process.env.GATSBY_CONCURRENT_DOWNLOAD, 10) || 0
: 200

const queue = Queue(pushToQueue, GATSBY_CONCURRENT_DOWNLOAD)

/**
* @callback {Queue~queueCallback}
Expand Down

0 comments on commit cada108

Please sign in to comment.