Skip to content

Commit

Permalink
update: retry config setter docs (#2109)
Browse files Browse the repository at this point in the history
update: timeout config setter docs
  • Loading branch information
Velfi authored Dec 15, 2022
1 parent 0dd6c82 commit 59de022
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rust-runtime/aws-smithy-client/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ impl<C, M> Builder<C, M, retry::Standard> {
}

impl<C, M> Builder<C, M> {
/// Set the standard retry policy's configuration.
/// Set the standard retry policy's configuration. When `config` is `None`,
/// the default retry policy will be used.
pub fn set_retry_config(&mut self, config: Option<retry::Config>) -> &mut Self {
let config = config.unwrap_or_default();
self.retry_policy =
Expand All @@ -299,7 +300,8 @@ impl<C, M> Builder<C, M> {
self
}

/// Set operation timeout config for the client.
/// Set operation timeout config for the client. If `operation_timeout_config` is
/// `None`, timeouts will be disabled.
pub fn set_operation_timeout_config(
&mut self,
operation_timeout_config: Option<OperationTimeoutConfig>,
Expand Down

0 comments on commit 59de022

Please sign in to comment.