Download #2
+2
-3
@@ -37,8 +37,7 @@ pub async fn init_client(config: &config::Config) -> aws_sdk_s3::Client {
|
|||||||
.force_path_style(true)
|
.force_path_style(true)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
let client = aws_sdk_s3::Client::from_conf(s3_config);
|
aws_sdk_s3::Client::from_conf(s3_config)
|
||||||
client
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
@@ -83,7 +82,7 @@ impl Labyrinth {
|
|||||||
|
|
||||||
match client
|
match client
|
||||||
.get_object()
|
.get_object()
|
||||||
.bucket(&self.config.bucket.clone())
|
.bucket(self.config.bucket.clone())
|
||||||
.key(file_key)
|
.key(file_key)
|
||||||
.send()
|
.send()
|
||||||
.await
|
.await
|
||||||
|
|||||||
Reference in New Issue
Block a user