mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 11:30:59 +00:00
aws: Don't unnecessarily clone AWS behaviour version
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1864>
This commit is contained in:
parent
00a4398aee
commit
0e3d019e24
4 changed files with 7 additions and 7 deletions
|
@ -149,12 +149,12 @@ pub fn wait_config(
|
|||
.or_default_provider()
|
||||
.or_else(Region::new(DEFAULT_S3_REGION));
|
||||
let config_future = match credentials {
|
||||
Some(cred) => aws_config::defaults(AWS_BEHAVIOR_VERSION.clone())
|
||||
Some(cred) => aws_config::defaults(*AWS_BEHAVIOR_VERSION)
|
||||
.timeout_config(timeout_config)
|
||||
.region(region_provider)
|
||||
.credentials_provider(cred)
|
||||
.load(),
|
||||
None => aws_config::defaults(AWS_BEHAVIOR_VERSION.clone())
|
||||
None => aws_config::defaults(*AWS_BEHAVIOR_VERSION)
|
||||
.timeout_config(timeout_config)
|
||||
.region(region_provider)
|
||||
.load(),
|
||||
|
|
|
@ -559,7 +559,7 @@ impl Transcriber {
|
|||
let config_loader = match (access_key, secret_access_key) {
|
||||
(Some(key), Some(secret_key)) => {
|
||||
gst::debug!(CAT, imp = self, "Using settings credentials");
|
||||
aws_config::defaults(AWS_BEHAVIOR_VERSION.clone()).credentials_provider(
|
||||
aws_config::defaults(*AWS_BEHAVIOR_VERSION).credentials_provider(
|
||||
aws_transcribe::config::Credentials::new(
|
||||
key,
|
||||
secret_key,
|
||||
|
@ -571,7 +571,7 @@ impl Transcriber {
|
|||
}
|
||||
_ => {
|
||||
gst::debug!(CAT, imp = self, "Attempting to get credentials from env...");
|
||||
aws_config::defaults(AWS_BEHAVIOR_VERSION.clone())
|
||||
aws_config::defaults(*AWS_BEHAVIOR_VERSION)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ mod tests {
|
|||
)
|
||||
.or_default_provider();
|
||||
|
||||
let config = aws_config::defaults(AWS_BEHAVIOR_VERSION.clone())
|
||||
let config = aws_config::defaults(*AWS_BEHAVIOR_VERSION)
|
||||
.region(region_provider)
|
||||
.load()
|
||||
.await;
|
||||
|
|
|
@ -237,7 +237,7 @@ impl Signaller {
|
|||
};
|
||||
|
||||
let client = Client::new(
|
||||
&aws_config::defaults(AWS_BEHAVIOR_VERSION.clone())
|
||||
&aws_config::defaults(*AWS_BEHAVIOR_VERSION)
|
||||
.credentials_provider(credentials.clone())
|
||||
.load()
|
||||
.await,
|
||||
|
@ -307,7 +307,7 @@ impl Signaller {
|
|||
);
|
||||
|
||||
let signaling_config = aws_sdk_kinesisvideosignaling::config::Builder::from(
|
||||
&aws_config::defaults(AWS_BEHAVIOR_VERSION.clone())
|
||||
&aws_config::defaults(*AWS_BEHAVIOR_VERSION)
|
||||
.credentials_provider(credentials.clone())
|
||||
.load()
|
||||
.await,
|
||||
|
|
Loading…
Reference in a new issue