AWS SDK

AWS SDK

rev. ae4191c6546fcc2595672563a7970c8ad5d70b4b (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-runtime/src/client/defaults.rs

@@ -148,148 +208,212 @@
  168    168   
  169    169   
/// Runtime plugin that sets the default timeout config (no timeouts).
  170    170   
pub fn default_timeout_config_plugin() -> Option<SharedRuntimePlugin> {
  171    171   
    Some(
  172    172   
        default_plugin("default_timeout_config_plugin", |components| {
  173    173   
            components.with_config_validator(SharedConfigValidator::base_client_config_fn(
  174    174   
                validate_timeout_config,
  175    175   
            ))
  176    176   
        })
  177    177   
        .with_config(layer("default_timeout_config", |layer| {
  178         -
            layer.store_put(TimeoutConfig::disabled());
         178  +
            layer.store_put(
         179  +
                TimeoutConfig::builder()
         180  +
                    .connect_timeout(Duration::from_millis(3100))
         181  +
                    .build(),
         182  +
            );
  179    183   
        }))
  180    184   
        .into_shared(),
  181    185   
    )
  182    186   
}
  183    187   
  184    188   
fn validate_timeout_config(
  185    189   
    components: &RuntimeComponentsBuilder,
  186    190   
    cfg: &ConfigBag,
  187    191   
) -> Result<(), BoxError> {
  188    192   
    if let Some(timeout_config) = cfg.load::<TimeoutConfig>() {