diff options
| author | tv <tv@krebsco.de> | 2026-10-24 15:30:04 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-24 15:30:04 +0200 |
| commit | feb349ee09aa2151c421840bec521719c6149dcb (patch) | |
| tree | cd4a2709dfd3ee1fde3827be6c4daadff1f9faa8 /src/state.rs | |
| parent | e5d590f4e927a18fbed334a3d90650015ed75106 (diff) | |
add API and CLI to print effective config
Diffstat (limited to 'src/state.rs')
| -rw-r--r-- | src/state.rs | 3 |
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`). |
