minorfix2
All checks were successful
deploy / deploy (push) Successful in 1m1s

This commit is contained in:
Untone 2024-10-22 12:56:45 +03:00
parent bf4b5edb38
commit 3019652d8b

View File

@ -96,10 +96,10 @@ impl AppState {
// Запрашиваем список файлов из Storj S3
let filekeyed_list = get_s3_filelist(&self.storj_client, &self.storj_bucket).await;
for [filekey, filepath] in filekeyed_list {
for [filekey, filepath] in filekeyed_list.clone() {
// Сохраняем список файлов в Redis, используя HSET для каждого файла
let _: () = redis
.hset(PATH_MAPPING_KEY, filekey, filepath)
.hset(PATH_MAPPING_KEY, filekey.clone(), filepath)
.await
.expect(&format!("Failed to cache file {} in Redis", filekey));
}