-
Notifications
You must be signed in to change notification settings - Fork 943
Fix documentation for client-thrift and client-retry #6195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -221,7 +221,10 @@ the maximum number of total attempts to 10 by default. You can change this value | |||
`maxTotalAttempts` when you build a <type://RetryingClient>: | |||
|
|||
```java | |||
RetryingClient.newDecorator(rule, maxTotalAttempts); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -246,8 +249,11 @@ Second, it occurs when the time of individual attempt in retry has passed the ti | |||
You can configure it when you create the decorator: | |||
|
|||
```java | |||
RetryingClient.newDecorator(rule, maxTotalAttempts, | |||
responseTimeoutMillisForEachAttempt); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @pppurple!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the fixes, @pppurple! 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Motivation:
I found an incorrect class name and the use of deprecated functions in the document.
Therefore I fixed it to use the recommended function instead.
Modifications:
ThriftClient
toThriftClients
RetryConfig
instead of deprecated functions.Result: