Skip to content

Commit 4e453c7

Browse files
committed
Rename useExponentialBackoff upload parameter to exponentialBackoff
1 parent ae15649 commit 4e453c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class SpacesClient {
6868
permission = 'private',
6969
options = {},
7070
) {
71-
const { useExponentialBackoff = false, ...spacesOptions } = options;
71+
const { exponentialBackoff = false, ...spacesOptions } = options;
7272
const makeUpload = async () => {
7373
await this.s3client.upload({
7474
Bucket: this.bucket,
@@ -83,7 +83,7 @@ class SpacesClient {
8383
return this.getCDNURL(destinationPath);
8484
};
8585

86-
if (useExponentialBackoff) {
86+
if (exponentialBackoff) {
8787
return backOff(() => makeUpload());
8888
}
8989

0 commit comments

Comments
 (0)