diff options
Diffstat (limited to 'rs')
-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, |