mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-06 05:17:42 +00:00
feat: translate Chinese comments to English across codebase
This commit is contained in:
+1
-1
@@ -156,7 +156,7 @@ pub fn clone_err(e: &common::error::Error) -> common::error::Error {
|
||||
common::error::Error::new(std::io::Error::new(e.kind(), e.to_string()))
|
||||
}
|
||||
} else {
|
||||
//TODO: 优化其他类型
|
||||
//TODO: Optimize other types
|
||||
common::error::Error::msg(e.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -94,7 +94,7 @@ where
|
||||
self.clone().save_iam_formatter().await?;
|
||||
self.clone().load().await?;
|
||||
|
||||
// 后台线程开启定时更新或者接收到信号更新
|
||||
// Background thread starts periodic updates or receives signal updates
|
||||
tokio::spawn({
|
||||
let s = Arc::clone(&self);
|
||||
async move {
|
||||
@@ -142,7 +142,7 @@ where
|
||||
Ok(())
|
||||
}
|
||||
|
||||
// todo, 判断是否存在,是否可以重试
|
||||
// TODO: Check if exists, whether retry is possible
|
||||
#[tracing::instrument(level = "debug", skip(self))]
|
||||
async fn save_iam_formatter(self: Arc<Self>) -> Result<()> {
|
||||
let path = get_iam_format_file_path();
|
||||
|
||||
@@ -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: Implement walk, use walk
|
||||
|
||||
// let prefix = format!("{}{}", prefix, item);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user