mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-27 16:48:58 +00:00
init metacache io
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user