mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-28 07:14:40 +08:00
chore: fix typo
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
@@ -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?;
|
||||
|
||||
Reference in New Issue
Block a user