aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2024-01-24 16:38:28 +0100
committerLibravatar Rutger Broekhoff2024-01-24 16:38:28 +0100
commit9c20f00b100197b3f999a269d7545ea7905be1bc (patch)
treef7c94d535e0dfd087a4d32e26e21b4ac4953b5e5
parent894e16f222c02ebad4460fce4247fa1f5e67c14b (diff)
downloadgitolfs3-9c20f00b100197b3f999a269d7545ea7905be1bc.tar.gz
gitolfs3-9c20f00b100197b3f999a269d7545ea7905be1bc.zip
Set AWS SDK behaviour version to latest in code
-rw-r--r--rs/server/Cargo.toml2
-rw-r--r--rs/server/src/main.rs1
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"
4edition = "2021" 4edition = "2021"
5 5
6[dependencies] 6[dependencies]
7aws-config = { version = "1.1.2", features = ["behavior-version-latest"] } 7aws-config = { version = "1.1.2" }
8aws-sdk-s3 = "1.12.0" 8aws-sdk-s3 = "1.12.0"
9axum = "0.7" 9axum = "0.7"
10base64 = "0.21" 10base64 = "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,