proxy-reworked

This commit is contained in:
2024-10-22 19:34:08 +03:00
parent 30a2672ca8
commit 1c27714455
7 changed files with 125 additions and 116 deletions

View File

@@ -42,11 +42,11 @@ pub async fn check_file_exists(
/// Загружает файл из S3.
pub async fn load_file_from_s3(
storj_client: &S3Client,
s3_client: &S3Client,
bucket: &str,
key: &str,
) -> Result<Vec<u8>, actix_web::Error> {
let get_object_output = storj_client
let get_object_output = s3_client
.get_object()
.bucket(bucket)
.key(key)