ME Pool Reinit polishing

This commit is contained in:
Alexey
2026-02-23 16:09:09 +03:00
parent d8dcbbb61e
commit fc2ac3d10f
3 changed files with 68 additions and 0 deletions
+2
View File
@@ -342,6 +342,8 @@ impl Default for GeneralConfig {
}
impl GeneralConfig {
/// Resolve the active updater interval for ME infrastructure refresh tasks.
/// `update_every` has priority, otherwise legacy proxy_*_auto_reload_secs are used.
pub fn effective_update_every_secs(&self) -> u64 {
self.update_every
.unwrap_or_else(|| self.proxy_secret_auto_reload_secs.min(self.proxy_config_auto_reload_secs))