init metacache io

This commit is contained in:
weisd
2024-12-05 17:42:17 +08:00
committed by weisd
parent 2786174ffb
commit 0cf7c19b96
4 changed files with 30 additions and 32 deletions
+7 -9
View File
@@ -2,8 +2,9 @@ use std::{collections::HashMap, path::Path, sync::Arc};
use ecstore::{
config::error::is_not_found,
store::{ECStore, ListPathOptions},
store::ECStore,
store_api::{HTTPRangeSpec, ObjectIO, ObjectInfo, ObjectOptions, PutObjReader},
store_list_objects::ListPathOptions,
utils::path::dir,
};
use futures::future::try_join_all;
@@ -42,14 +43,11 @@ impl ObjectStore {
futures.push(async move {
let items = self
.object_api
.list_path(
&ListPathOptions {
bucket: Self::BUCKET_NAME.into(),
prefix: prefix.clone(),
..Default::default()
},
"",
)
.list_path(&ListPathOptions {
bucket: Self::BUCKET_NAME.into(),
prefix: prefix.clone(),
..Default::default()
})
.await;
match items {