File tree 2 files changed +8
-2
lines changed
aws/rust-runtime/aws-config/src/imds
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -125,3 +125,9 @@ message = "The client Config now has getters for every value that it holds."
125
125
references = [" smithy-rs#1747" ]
126
126
meta = { "breaking" = false , "tada" = false , "bug" = true }
127
127
author = " kastolars"
128
+
129
+ [[aws-sdk-rust ]]
130
+ message = " Fix regression where `connect_timeout` and `read_timeout` fields are unused in the IMDS client"
131
+ references = [" smithy-rs#1822" ]
132
+ meta = { "breaking" = false , "tada" = false , "bug" = true }
133
+ author = " kevinpark1217"
Original file line number Diff line number Diff line change @@ -556,8 +556,8 @@ impl Builder {
556
556
pub async fn build ( self ) -> Result < Client , BuildError > {
557
557
let config = self . config . unwrap_or_default ( ) ;
558
558
let timeout_config = TimeoutConfig :: builder ( )
559
- . connect_timeout ( DEFAULT_CONNECT_TIMEOUT )
560
- . read_timeout ( DEFAULT_READ_TIMEOUT )
559
+ . connect_timeout ( self . connect_timeout . unwrap_or ( DEFAULT_CONNECT_TIMEOUT ) )
560
+ . read_timeout ( self . read_timeout . unwrap_or ( DEFAULT_READ_TIMEOUT ) )
561
561
. build ( ) ;
562
562
let connector_settings = ConnectorSettings :: from_timeout_config ( & timeout_config) ;
563
563
let connector = expect_connector ( config. connector ( & connector_settings) ) ;
You can’t perform that action at this time.
0 commit comments