Skip to content

Commit

Permalink
CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoh committed May 25, 2023
1 parent 5a4ab98 commit dd21d51
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions aws/rust-runtime/aws-config/external-types.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ allowed_external_types = [
"aws_credential_types::provider::SharedCredentialsProvider",
"aws_sdk_sts::types::_policy_descriptor_type::PolicyDescriptorType",
"aws_smithy_async::rt::sleep::AsyncSleep",
"aws_smithy_async::time::TimeSource",
"aws_smithy_client::bounds::SmithyConnector",
"aws_smithy_client::erase::DynConnector",
"aws_smithy_client::erase::boxclone::BoxCloneService",
Expand Down
2 changes: 2 additions & 0 deletions aws/rust-runtime/aws-types/external-types.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ allowed_external_types = [
"aws_credential_types::cache::CredentialsCache",
"aws_credential_types::provider::SharedCredentialsProvider",
"aws_smithy_async::rt::sleep::AsyncSleep",
"aws_smithy_async::time::TimeSource",
"aws_smithy_async::time::SharedTimeSource",
"aws_smithy_client::http_connector",
"aws_smithy_client::http_connector::HttpConnector",
"aws_smithy_http::endpoint::Endpoint",
Expand Down
4 changes: 2 additions & 2 deletions aws/rust-runtime/aws-types/src/sdk_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,8 @@ impl SdkConfig {
}

/// Configured time source
pub fn time_source(&self) -> Option<SharedTimeSource> {
self.time_source.clone()
pub fn time_source(&self) -> Option<&SharedTimeSource> {
self.time_source.as_ref()
}

/// Configured app name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class GenericSmithySdkConfigSettings : ClientCodegenDecorator {
${section.serviceConfigBuilder}.set_sleep_impl(${section.sdkConfig}.sleep_impl());
${section.serviceConfigBuilder}.set_http_connector(${section.sdkConfig}.http_connector().cloned());
${section.serviceConfigBuilder}.set_time_source(${section.sdkConfig}.time_source().clone());
${section.serviceConfigBuilder}.set_time_source(${section.sdkConfig}.time_source().cloned());
""",
)
},
Expand Down

0 comments on commit dd21d51

Please sign in to comment.