Skip to content

Commit

Permalink
Set maxAttempts with retries config
Browse files Browse the repository at this point in the history
  • Loading branch information
gndelia committed Dec 27, 2023
1 parent 1715e76 commit b1b19ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/dynamodb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ export class DynamoDB {
endpoint,
region,
requestHandler,
// maxRetries property has been renamed from v2 https://github.com/aws/aws-sdk-js-v3/issues/4049
maxAttempts: typeof retries === "number" ? retries : undefined,
})
);
}
Expand Down

0 comments on commit b1b19ae

Please sign in to comment.