From 8604178bfcc9dbc56ff071bccee063b0febae0a7 Mon Sep 17 00:00:00 2001 From: Stefan Schonert Date: Thu, 6 Jul 2023 11:17:14 +0200 Subject: [PATCH] @uppy/aws-s3-multipart: increase priority of abort and complete (#4542) --- packages/@uppy/aws-s3-multipart/src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@uppy/aws-s3-multipart/src/index.js b/packages/@uppy/aws-s3-multipart/src/index.js index b5ac9a84a4..c49cd99033 100644 --- a/packages/@uppy/aws-s3-multipart/src/index.js +++ b/packages/@uppy/aws-s3-multipart/src/index.js @@ -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 }) @@ -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()