Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Feb 2, 2024
1 parent 5fb4046 commit 16d436b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ async function fastifyStatic (fastify, opts) {
const files = globSync('**/**', {
cwd: rootPath, absolute: true, follow: true, nodir: true, dot: opts.serveDotFiles, ignore: opts.hashSkip
})
const hashQueue = fastq.promise(generateFileHash, os.availableParallelism)
const hashQueue = fastq.promise(generateFileHash, os.availableParallelism())
const hashPromises = files.map((file) => hashQueue.push(file))
const hashes = await Promise.all(hashPromises)

Expand Down
2 changes: 1 addition & 1 deletion lib/dirList.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const dirList = {
}
}

const queue = fastq.promise(worker, os.availableParallelism)
const queue = fastq.promise(worker, os.availableParallelism())
await Promise.all(files.map(filename => queue.push(filename)))

async function getExtendedInfo (folderPath) {
Expand Down

0 comments on commit 16d436b

Please sign in to comment.