Skip to content

Commit

Permalink
@uppy/aws-s3-multipart: increase priority of abort and complete (#4542)
Browse files Browse the repository at this point in the history
  • Loading branch information
schonert authored Jul 6, 2023
1 parent 169de84 commit 8604178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@uppy/aws-s3-multipart/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class HTTPCommunicationQueue {
const requests = this.#requests

if ('abortMultipartUpload' in options) {
this.#abortMultipartUpload = requests.wrapPromiseFunction(options.abortMultipartUpload)
this.#abortMultipartUpload = requests.wrapPromiseFunction(options.abortMultipartUpload, { priority:1 })
}
if ('createMultipartUpload' in options) {
this.#createMultipartUpload = requests.wrapPromiseFunction(options.createMultipartUpload, { priority:-1 })
Expand All @@ -85,7 +85,7 @@ class HTTPCommunicationQueue {
this.#listParts = requests.wrapPromiseFunction(options.listParts)
}
if ('completeMultipartUpload' in options) {
this.#sendCompletionRequest = requests.wrapPromiseFunction(options.completeMultipartUpload)
this.#sendCompletionRequest = requests.wrapPromiseFunction(options.completeMultipartUpload, { priority:1 })
}
if ('retryDelays' in options) {
this.#retryDelayIterator = options.retryDelays?.values()
Expand Down

0 comments on commit 8604178

Please sign in to comment.