v.34.1
This commit is contained in:
1 parent
4afa88a65e
commit
2ab44c4c62
49 files changed
+1523
-176
No files matched your search
@@ -23,6 +23,7 @@ pub struct App {
|
||||
pub basic_workers: Arc<Semaphore>,
|
||||
pub basic_limits: crate::basic_auth::Limits,
|
||||
pub active_prometheus: crate::prometheus::Settings,
|
||||
pub prometheus_token_hash: arc_swap::ArcSwapOption<String>,
|
||||
pub active_administration: crate::settings::Administration,
|
||||
pub active_administration_tls_policy: crate::tls::ProtocolPolicy,
|
||||
pub active_administration_certificate_files: Option<(String, String)>,
|
||||
@@ -58,6 +59,7 @@ pub struct App {
|
||||
pub started: Instant,
|
||||
pub header_timeout: Duration,
|
||||
pub body_idle_timeout: Duration,
|
||||
pub config_file: Mutex<Option<(std::path::PathBuf, external_config::Fingerprint)>>,
|
||||
update_lock: Mutex<()>,
|
||||
update_slots: Arc<Semaphore>,
|
||||
}
|
||||
@@ -173,7 +175,11 @@ fn vhost_cache_revision(vhost: &crate::vhost::Vhost) -> u64 {
|
||||
}
|
||||
|
||||
fn vhost_cache_revisions(config: &config::Config) -> HashMap<String, u64> {
|
||||
config.vhosts.iter().map(|vhost| (vhost.id.clone(), vhost_cache_revision(vhost))).collect()
|
||||
config
|
||||
.vhosts
|
||||
.iter()
|
||||
.map(|vhost| (vhost.id.clone(), vhost_cache_revision(vhost)))
|
||||
.collect()
|
||||
}
|
||||
|
||||
fn cache_invalidation(previous: &config::Config, next: &config::Config) -> CacheInvalidation {
|
||||
|
||||
Reference in new issue
Block a user