Skip to content

Commit 84d704b

Browse files
committed
Fix deprecation version and extract timeout constant
1 parent 8aa96ab commit 84d704b

6 files changed

Lines changed: 9 additions & 6 deletions

File tree

aws/rust-runtime/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aws/rust-runtime/aws-config/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aws/sdk/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust-runtime/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust-runtime/aws-smithy-runtime-api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws-smithy-runtime-api"
3-
version = "1.9.4"
3+
version = "1.10.0"
44
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Zelda Hessler <zhessler@amazon.com>"]
55
description = "Smithy runtime types."
66
edition = "2021"

rust-runtime/aws-smithy-runtime/src/client/defaults.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ use aws_smithy_types::timeout::TimeoutConfig;
3333
use std::borrow::Cow;
3434
use std::time::Duration;
3535

36+
/// Default connect timeout for all clients with BehaviorVersion >= v2025_01_17
37+
const DEFAULT_CONNECT_TIMEOUT: Duration = Duration::from_millis(3100);
38+
3639
fn default_plugin<CompFn>(name: &'static str, components_fn: CompFn) -> StaticRuntimePlugin
3740
where
3841
CompFn: FnOnce(RuntimeComponentsBuilder) -> RuntimeComponentsBuilder,
@@ -240,7 +243,7 @@ pub fn default_timeout_config_plugin_v2(
240243
let timeout_config = if behavior_version.is_at_least(BehaviorVersion::v2025_01_17()) {
241244
// All clients with BMV >= v2025_01_17: Set connect_timeout only
242245
TimeoutConfig::builder()
243-
.connect_timeout(Duration::from_millis(3100))
246+
.connect_timeout(DEFAULT_CONNECT_TIMEOUT)
244247
.build()
245248
} else {
246249
// Old behavior versions: All timeouts disabled

0 commit comments

Comments
 (0)