Skip to content

Commit

Permalink
Fix typo (#2759)
Browse files Browse the repository at this point in the history
RetryTimeoutCost is for timeouts and costs 10 while RetryCost is general and costs 5. See https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws/retry#pkg-constants
  • Loading branch information
raonitimo authored Aug 30, 2024
1 parent c448d43 commit 264eff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/en/docs/configuring-sdk/retries-timeouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ than what's available results in operation failure with a

The default implementation is parameterized as follows (how to modify each setting):
- a capacity of 500 (set the value of RateLimiter on StandardOptions using [NewTokenRateLimit]({{< apiref "aws/ratelimit#NewTokenRateLimit" >}}))
- a retry caused by a timeout costs 10 tokens (set RetryCost on StandardOptions)
- a retry caused by other errors costs 5 tokens (set RetryTimeoutCost on StandardOptions)
- a retry caused by a timeout costs 10 tokens (set RetryTimeoutCost on StandardOptions)
- a retry caused by other errors costs 5 tokens (set RetryCost on StandardOptions)
- an operation that succeeds on the 1st attempt adds 1 token (set NoRetryIncrement on StandardOptions)
- operations that succeed on the 2nd or later attempt do not add back any tokens

Expand Down

0 comments on commit 264eff1

Please sign in to comment.