Change imagePool constructor argument to 4
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Amy 2021-10-16 20:53:03 -04:00
parent fa6fe454a9
commit b933635e6e
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ export async function optimizeImages() {
const imagePaths = await getFilePathsInDirectory(IMAGES_SOURCE_DIRECTORY);
await fse.emptyDir(IMAGES_DESTINATION_DIRECTORY);
const imagePool = new ImagePool();
const imagePool = new ImagePool(4);
await Promise.all(
imagePaths.map(async (imagePath) => {