Skip to content

Commit

Permalink
Drop lockedCandidatesForBatch as a fix for transloadit#3341
Browse files Browse the repository at this point in the history
  • Loading branch information
yaegor committed Dec 2, 2021
1 parent 78268d0 commit cb2559f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/@uppy/aws-s3-multipart/src/MultipartUploader.js
Expand Up @@ -58,7 +58,6 @@ class MultipartUploader {
this.partsInProgress = 0
this.chunks = null
this.chunkState = null
this.lockedCandidatesForBatch = []

this.#initChunks()

Expand Down Expand Up @@ -181,8 +180,6 @@ class MultipartUploader {

const candidates = []
for (let i = 0; i < this.chunkState.length; i++) {
// eslint-disable-next-line no-continue
if (this.lockedCandidatesForBatch.includes(i)) continue
const state = this.chunkState[i]
// eslint-disable-next-line no-continue
if (state.done || state.busy) continue
Expand Down Expand Up @@ -242,8 +239,6 @@ class MultipartUploader {
}

async #prepareUploadParts (candidates) {
this.lockedCandidatesForBatch.push(...candidates)

const result = await this.#retryable({
attempt: () => this.options.prepareUploadParts({
key: this.key,
Expand Down

0 comments on commit cb2559f

Please sign in to comment.