This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user