reduce conccurent upload to 4

This commit is contained in:
Abhinav-grd 2021-02-26 11:28:44 +05:30
parent 11ace7d793
commit e50c8864ec

View file

@ -128,7 +128,7 @@ class UploadService {
ErrorHandler(e);
}
const uploadProcesses = [];
for (let i = 0; i < Math.min(5, this.totalFileCount); i++) {
for (let i = 0; i < Math.min(4, this.totalFileCount); i++) {
uploadProcesses.push(
this.uploader(
await new CryptoWorker(),