From 9b67404d316301fbbb5bdf57c742034d0c227ae6 Mon Sep 17 00:00:00 2001 From: Raoni Timo de Castro Cambiaghi Date: Fri, 23 Aug 2024 11:45:10 +1000 Subject: [PATCH] Fix typo 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 --- content/en/docs/configuring-sdk/retries-timeouts.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/configuring-sdk/retries-timeouts.md b/content/en/docs/configuring-sdk/retries-timeouts.md index b25c8e36b0c..96a4321549c 100644 --- a/content/en/docs/configuring-sdk/retries-timeouts.md +++ b/content/en/docs/configuring-sdk/retries-timeouts.md @@ -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