summaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-24 15:30:04 +0200
committertv <tv@krebsco.de>2026-10-24 15:30:04 +0200
commit32e47148777d5dc68757fad8512efb43fa600f92 (patch)
treef2a50faeb4094fef67e2fd5a58453b691c6c929f /src/state.rs
parent246067e0674735706faf499bd46c907f95a61ccf (diff)
add API and CLI to print effective config
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs
index a47211f..df053a6 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -597,6 +597,9 @@ pub(crate) struct AppState {
pub(crate) alias: Option<String>,
/// Members alive within this window vote on remakes (`--electorate-window-days`).
pub(crate) electorate_window: Duration,
+ /// The effective configuration with sources, imported values left out
+ /// (`config::Loaded::report`), for `GET /admin/config`.
+ pub(crate) config: Arc<serde_json::Value>,
/// Our own connectivity record and stability tier (`swarm::stability`).
pub(crate) stability: Arc<std::sync::Mutex<crate::swarm::stability::Stability>>,
/// Round-trip times to peers (`swarm::rtt`).