feat: translate Chinese comments to English across codebase

This commit is contained in:
overtrue
2025-05-25 15:24:34 +08:00
parent d1a2f2939c
commit 9d90913697
11 changed files with 60 additions and 60 deletions
+1 -1
View File
@@ -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
View File
@@ -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();
+1 -1
View File
@@ -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);