Skip to content

Commit

Permalink
chore: whoops, max_attempts -> with_max_attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
shikhar committed Nov 20, 2024
1 parent dfaea7e commit 2332405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ impl ClientConfig {
/// Maximum number of attempts per request.
/// Setting it to 1 disables retrying.
/// The default is to make 3 attempts.
pub fn max_attempts(self, max_attempts: usize) -> Self {
pub fn with_max_attempts(self, max_attempts: usize) -> Self {
assert!(max_attempts > 0, "max attempts must be greater than 0");
Self {
max_attempts,
Expand Down

0 comments on commit 2332405

Please sign in to comment.