This commit is contained in:
Archer
2023-12-11 15:12:14 +08:00
committed by GitHub
parent 84cf6b5658
commit d2d7eac9e0
105 changed files with 1091 additions and 801 deletions

View File

@@ -31,6 +31,12 @@ export async function chunksUpload({
});
}
// add chunk index
chunks = chunks.map((chunk, i) => ({
...chunk,
chunkIndex: i
}));
let successInsert = 0;
let retryTimes = 10;
for (let i = 0; i < chunks.length; i += rate) {