diff options
| author | tv <tv@krebsco.de> | 2026-10-24 19:25:54 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-24 19:25:54 +0200 |
| commit | 4d78dd70ac4a62e6bacdc32d5cbf078abb08c2a0 (patch) | |
| tree | fd4f9f261b499a15a8977d78144f742dd847af35 /src/state.rs | |
| parent | 96f033f77264d7f47cbfa953f8ddbbfb563e6115 (diff) | |
only protocol-writers may modify _continuum
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 1ea5aae..c51446f 100644 --- a/src/state.rs +++ b/src/state.rs @@ -599,6 +599,9 @@ pub(crate) struct AppState { pub(crate) electorate_window: Duration, /// Chunked transfers served and fetched (`swarm::blob`). pub(crate) blobs: Arc<crate::swarm::blob::Blobs>, + /// HTTP API users who may write protocol data through the store API + /// (`--protocol-writers`). + pub(crate) protocol_writers: Arc<std::collections::HashSet<String>>, /// The effective configuration with sources, imported values left out /// (`config::Loaded::report`), for `GET /admin/config`. pub(crate) config: Arc<serde_json::Value>, |
