mirror of
https://github.com/telemt/telemt.git
synced 2026-06-19 02:00:08 +07:00
ME Pool Reinit polishing
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user