Skip to content

Commit

Permalink
use os.cpus
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Feb 2, 2024
1 parent e28166e commit f257e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dirList.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const dirList = {
}
}

const walkQueue = fastq.promise(worker, 4)
const walkQueue = fastq.promise(worker, os.cpus().length)
await Promise.all(files.map(filename => walkQueue.push(filename)))
}

Expand Down

0 comments on commit f257e5c

Please sign in to comment.