Atomic Lifecycle for Writer Refresh + Hardswap

This commit is contained in:
Alexey
2026-09-12 20:14:41 +03:00
parent 54197e848a
commit 1ea5f7a1d6
44 changed files with 3020 additions and 581 deletions
+5
View File
@@ -236,6 +236,10 @@ async fn handle<B>(
let config = runtime.config();
if req.uri().path() == "/metrics" {
let me_hardswap = match runtime.current_me_pool().await {
Some(pool) => Some(pool.api_hardswap_snapshot().await),
None => None,
};
let body = render_metrics(
stats,
shared_state,
@@ -244,6 +248,7 @@ async fn handle<B>(
tls_cache,
tls_full_cert_budget,
web_publication,
me_hardswap.as_ref(),
)
.await;
let resp = Response::builder()