Skip to content

Commit

Permalink
- Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennenoel committed Nov 28, 2023
1 parent 8906c63 commit 812099f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/aws/src/clients/cloudformation.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export class CloudformationClient implements CloudformationClientInterface {
return await this.getClient().send(command);
} catch (e) {
if(e.code === "Throttling" && retryNumber < 3) {
await new Promise(resolve => setTimeout(resolve, (retryNumber + 1) * 1000);
await new Promise(resolve => setTimeout(resolve, (retryNumber + 1) * 1000));

return this.describeChangeSet(input, retryNumber++);
}
Expand All @@ -243,7 +243,7 @@ export class CloudformationClient implements CloudformationClientInterface {
return await this.getClient().send(command);
} catch (e) {
if(e.code === "Throttling" && retryNumber < 3) {
await new Promise(resolve => setTimeout(resolve, (retryNumber + 1) * 1000);
await new Promise(resolve => setTimeout(resolve, (retryNumber + 1) * 1000));

return this.executeChangeSet(input, retryNumber++);
}
Expand Down

0 comments on commit 812099f

Please sign in to comment.