Skip to content

Commit

Permalink
fix: setup retry & timeout properly
Browse files Browse the repository at this point in the history
using aws-sdk v3 interface
  • Loading branch information
Kikobeats committed Dec 26, 2021
1 parent 8749a24 commit f7910b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ class KeyvS3 extends EventEmitter {
this.s3client = s3client || new S3Client(opts)
this.got = got.extend({
...gotOpts,
retry: opts.maxRetries,
timeout: opts.httpOptions ? opts.httpOptions.timeout : undefined
retry: opts.maxAttempts,
timeout: opts.requestHandler
? opts.requestHandler.socketTimeout
: undefined
})
}

Expand Down

0 comments on commit f7910b8

Please sign in to comment.