mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-12-03 20:30:11 +08:00
refactor(config): name the runtime rendering step
This commit is contained in:
@@ -250,7 +250,7 @@ impl Config {
|
||||
}
|
||||
|
||||
pub(crate) async fn generate_with_profiles(profiles: &IProfiles) -> Result<()> {
|
||||
let (mut config, exists_keys, logs, dns_override) = enhance::enhance(profiles).await?;
|
||||
let (mut config, exists_keys, logs, dns_override) = enhance::render_runtime_config(profiles).await?;
|
||||
|
||||
resolve_provider_path_conflicts(&mut config, &dirs::app_home_dir()?)?;
|
||||
sanitize_tunnels_proxy(&mut config);
|
||||
|
||||
@@ -247,7 +247,7 @@ async fn read_dns_settings(enabled: bool) -> Option<Mapping> {
|
||||
}
|
||||
|
||||
/// Returns the enhanced profile, its original keys, script logs, and DNS override decision.
|
||||
pub async fn enhance(
|
||||
pub async fn render_runtime_config(
|
||||
profiles: &IProfiles,
|
||||
) -> Result<(Mapping, HashSet<String>, HashMap<String, ResultLog>, DnsOverrideState)> {
|
||||
let profile_uid = profiles.current.as_deref().unwrap_or_default();
|
||||
|
||||
Reference in New Issue
Block a user