This commit is contained in:
houseme
2025-05-19 16:21:22 +08:00
parent dff7476143
commit be8a615cd7
4 changed files with 23 additions and 24 deletions
+4 -4
View File
@@ -110,7 +110,7 @@ pub struct ObjectStore {
}
impl ObjectStore {
const BUCKET_NAME: &str = ".rustfs.sys";
const BUCKET_NAME: &'static str = ".rustfs.sys";
pub fn new(object_api: Arc<ECStore>) -> Self {
Self { object_api }
@@ -135,7 +135,7 @@ impl ObjectStore {
async fn list_iam_config_items(&self, prefix: &str, ctx_rx: B_Receiver<bool>, sender: Sender<StringOrErr>) {
// debug!("list iam config items, prefix: {}", &prefix);
// todo, 实现walk,使用walk
// todo, 实现 walk,使用 walk
// let prefix = format!("{}{}", prefix, item);
@@ -349,7 +349,7 @@ impl ObjectStore {
// user.credentials.access_key = name.to_owned();
// }
// // todo, 校验session token
// // todo, 校验 session token
// Ok(Some(user))
// }
@@ -932,7 +932,7 @@ impl Store for ObjectStore {
// Arc::new(tokio::sync::Mutex::new(CacheEntity::default())),
// );
// // 一次读取32个元素
// // 一次读取 32 个元素
// let iter = items
// .iter()
// .map(|item| item.trim_start_matches("config/iam/"))