diff options
author | Rutger Broekhoff | 2024-01-24 16:38:28 +0100 |
---|---|---|
committer | Rutger Broekhoff | 2024-01-24 16:38:28 +0100 |
commit | 9c20f00b100197b3f999a269d7545ea7905be1bc (patch) | |
tree | f7c94d535e0dfd087a4d32e26e21b4ac4953b5e5 /rs/server | |
parent | 894e16f222c02ebad4460fce4247fa1f5e67c14b (diff) | |
download | gitolfs3-9c20f00b100197b3f999a269d7545ea7905be1bc.tar.gz gitolfs3-9c20f00b100197b3f999a269d7545ea7905be1bc.zip |
Set AWS SDK behaviour version to latest in code
Diffstat (limited to 'rs/server')
-rw-r--r-- | rs/server/Cargo.toml | 2 | ||||
-rw-r--r-- | rs/server/src/main.rs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/rs/server/Cargo.toml b/rs/server/Cargo.toml index c437597..a784bf8 100644 --- a/rs/server/Cargo.toml +++ b/rs/server/Cargo.toml | |||
@@ -4,7 +4,7 @@ version = "0.1.0" | |||
4 | edition = "2021" | 4 | edition = "2021" |
5 | 5 | ||
6 | [dependencies] | 6 | [dependencies] |
7 | aws-config = { version = "1.1.2", features = ["behavior-version-latest"] } | 7 | aws-config = { version = "1.1.2" } |
8 | aws-sdk-s3 = "1.12.0" | 8 | aws-sdk-s3 = "1.12.0" |
9 | axum = "0.7" | 9 | axum = "0.7" |
10 | base64 = "0.21" | 10 | base64 = "0.21" |
diff --git a/rs/server/src/main.rs b/rs/server/src/main.rs index 76e447d..2051b62 100644 --- a/rs/server/src/main.rs +++ b/rs/server/src/main.rs | |||
@@ -149,6 +149,7 @@ fn get_s3_client(env: &Env) -> Result<aws_sdk_s3::Client, std::io::Error> { | |||
149 | "gitolfs3-env", | 149 | "gitolfs3-env", |
150 | ); | 150 | ); |
151 | let config = aws_config::SdkConfig::builder() | 151 | let config = aws_config::SdkConfig::builder() |
152 | .behavior_version(aws_config::BehaviorVersion::latest()) | ||
152 | .endpoint_url(&env.s3_endpoint) | 153 | .endpoint_url(&env.s3_endpoint) |
153 | .credentials_provider(aws_sdk_s3::config::SharedCredentialsProvider::new( | 154 | .credentials_provider(aws_sdk_s3::config::SharedCredentialsProvider::new( |
154 | credentials, | 155 | credentials, |