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 1feca50 commit 2f84451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ async function fastifyStatic (fastify, opts) {
cwd: rootPath, absolute: true, follow: true, nodir: true, dot: opts.serveDotFiles, ignore: opts.hashSkip
})
const hashQueue = fastq.promise(generateFileHash, 5)
const hashes = files.map((file) => hashQueue.push(file))
await Promise.all(hashes)
const hashPromises = files.map((file) => hashQueue.push(file))
const hashes = await Promise.all(hashPromises)

for (let [index, file] of files.entries()) {
file = file.split(path.win32.sep).join(path.posix.sep)
Expand Down

0 comments on commit 2f84451

Please sign in to comment.