Change imagePool constructor argument to 4
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
fa6fe454a9
commit
b933635e6e
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue