diff options
| author | tv <tv@krebsco.de> | 2026-10-25 19:59:14 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-25 19:59:14 +0100 |
| commit | e2938888701f252b2a7cbfef348f5eadfb2538a3 (patch) | |
| tree | c6e7c249b02ec59c11cbe5600813692d735fb55e /src/state.rs | |
| parent | ceb4a494cca68d9275b85ba66917f4ccdb570bdb (diff) | |
allow to persist document
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 15652ab..ce47673 100644 --- a/src/state.rs +++ b/src/state.rs @@ -604,6 +604,8 @@ pub(crate) struct AppState { 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>, + /// This node's document on disk (`--document-file`), if configured. + pub(crate) document_file: Option<Arc<crate::document::file::DocumentFile>>, /// 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 |
