[Size] Fix mixed bundles (#1817)

This commit is contained in:
Alexander Zinchuk 2022-04-08 20:59:28 +02:00
parent d7226fded9
commit af4b67baad

View File

@ -1,4 +1,4 @@
import { sleep } from '../lib/gramjs/Helpers';
import { pause } from './schedulers';
type PendingDownload = {
url: string;
@ -29,7 +29,7 @@ async function processQueue() {
downloadOne(pendingDownload);
count++;
if (count === LIMIT_PER_BATCH) {
await sleep(BATCH_INTERVAL);
await pause(BATCH_INTERVAL);
count = 0;
}
}