diff options
Diffstat (limited to 'src/config/mod.rs')
| -rw-r--r-- | src/config/mod.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index 1f6ad60..672b8f8 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -410,8 +410,8 @@ pub(crate) const OPTIONS: &[OptionSpec] = &[ "keep-actor", Kind::Flag, "BOOL", - Some("false"), - "Resume writing as the actor this node wrote with before it stopped, if it stopped cleanly (its document file holds everything it wrote then), instead of a fresh one: an epoch then gathers a writer per node and per crash or drop rather than per start, which every transfer of its history carries a signature for. Needs document-file.", + Some("true"), + "Resume writing as the actor this node wrote with before it stopped, if it stopped cleanly (its document file holds everything it wrote then), instead of a fresh one, holding its writes until it synced once with a ready neighbour, or 10s passed: an epoch then gathers a writer per node and per crash or drop rather than per start, which every transfer of its history carries a signature for. Without document-file, nothing is kept. Off (false, in a configuration file) a node writes as a fresh actor each start.", ), option( "document-append", @@ -1273,9 +1273,6 @@ impl Settings { if self.document_append.is_zero() || self.document_rewrite.is_zero() { bail!("document-append and document-rewrite must be longer than 0"); } - if self.keep_actor && self.document_file.is_none() { - bail!("keep-actor needs document-file: it tells whether this node stopped cleanly"); - } if self.keepalive < Duration::from_millis(100) { bail!("keepalive must be at least 100ms"); } |
