chore: fix typo

This commit is contained in:
Slinetrac
2025-12-27 13:56:52 +08:00
parent 5aba848741
commit 1b477ed0b2
2 changed files with 3 additions and 3 deletions

View File

@@ -99,7 +99,7 @@ pub async fn update_proxy_chain_config_in_runtime(proxy_chain_config: Option<ser
runtime.edit_draft(|d| d.update_proxy_chain_config(proxy_chain_config));
// 我们需要在 CoreManager 中验证并应用配置,这里不应该直接调用 runtime.apply()
}
logging_error!(Type::Core, CoreManager::global().apply_generate_confihg().await);
logging_error!(Type::Core, CoreManager::global().apply_generate_config().await);
Ok(())
}

View File

@@ -60,10 +60,10 @@ impl CoreManager {
async fn perform_config_update(&self) -> Result<(bool, String)> {
Config::generate().await?;
self.apply_generate_confihg().await
self.apply_generate_config().await
}
pub async fn apply_generate_confihg(&self) -> Result<(bool, String)> {
pub async fn apply_generate_config(&self) -> Result<(bool, String)> {
match CoreConfigValidator::global().validate_config().await {
Ok((true, _)) => {
let run_path = Config::generate_file(ConfigType::Run).await?;