new(all): Paralel bot loading.

This commit is contained in:
rodrigorodriguez 2022-10-10 00:38:45 -03:00
parent 73300310b7
commit 9c81db77c9

View file

@ -178,7 +178,7 @@ export class GBMinService {
bar1.start(instances.length, i, { botId: "Boot" }); bar1.start(instances.length, i, { botId: "Boot" });
const throttledPromiseAll = async (promises) => { const throttledPromiseAll = async (promises) => {
const MAX_IN_PROCESS = 15; const MAX_IN_PROCESS = 5;
const results = new Array(promises.length); const results = new Array(promises.length);
async function doBlock(startIndex) { async function doBlock(startIndex) {