diff options
| author | tv <tv@krebsco.de> | 2026-10-25 13:38:59 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-25 13:38:59 +0100 |
| commit | 5fc03b6ea98b6ac02393e9606b4b7afebdbf217c (patch) | |
| tree | 021c3a4422a4f253863ed56cc253d42f1f52b19f /src/state.rs | |
| parent | 8462d6fef7fec52dadf02a4cc555818c465dfce3 (diff) | |
add files module to consistently track stats
Diffstat (limited to 'src/state.rs')
| -rw-r--r-- | src/state.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs index 37bde4a..15652ab 100644 --- a/src/state.rs +++ b/src/state.rs @@ -602,6 +602,8 @@ pub(crate) struct AppState { /// HTTP API users who may write protocol data through the store API /// (`--protocol-writers`). pub(crate) protocol_writers: Arc<std::collections::HashSet<String>>, + /// This node's own files, and how much it read and wrote them. + pub(crate) files: Arc<crate::files::Files>, /// What this node remembers across restarts (`--state-file`), if configured. pub(crate) state_file: Option<Arc<crate::swarm::state_file::StateFile>>, /// The effective configuration with sources, imported values left out |
