fix(cache): wire trusted-proxy cache and remove stale cache traces (#2581)

This commit is contained in:
houseme
2026-04-18 00:57:21 +08:00
committed by GitHub
parent 38eb0781cf
commit ffcf18f5f3
13 changed files with 231 additions and 51 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ pub fn init() {
.expect("Trusted proxy metrics already initialized");
// Initialize the trusted proxy layer.
let layer = TrustedProxyLayer::new(config.proxy.clone(), metrics, enabled);
let layer = TrustedProxyLayer::with_cache_config(config.proxy.clone(), config.cache.clone(), metrics, enabled);
PROXY_LAYER.set(layer).expect("Trusted proxy layer already initialized");
tracing::info!("Trusted Proxies module initialized");