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 | c8efbab8e351cbb533718260705b2fb65c85b3a4 (patch) | |
| tree | b422ede83757f3451f2af6bd030156350a51cb6e /src/state.rs | |
| parent | ee93b522afea766f4cf0d22784cfe755f26e5a19 (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>, |
