We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acd2833 commit 3f9ab46Copy full SHA for 3f9ab46
src/db/file.rs
@@ -96,7 +96,10 @@ fn s3_client() -> S3Client {
96
let client = S3Client::new_with(
97
rusoto_core::request::HttpClient::new().unwrap(),
98
EnvironmentProvider::default(),
99
- Region::UsWest1,
+ std::env::var("S3_ENDPOINT").ok().map(|e| Region::Custom {
100
+ name: "us-west-1".to_owned(),
101
+ endpoint: e,
102
+ }).unwrap_or(Region::UsWest1),
103
);
104
client
105
}
0 commit comments