diff options
| -rw-r--r-- | src/config/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index 672b8f8..f9663c1 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -913,7 +913,7 @@ pub(crate) struct Settings { pub(crate) genesis: bool, pub(crate) state_file: Option<PathBuf>, pub(crate) document_file: Option<PathBuf>, - #[serde(default)] + #[serde(default = "default_keep_actor")] pub(crate) keep_actor: bool, #[serde( default = "default_document_append", @@ -1113,6 +1113,9 @@ pub(crate) const TRANSPORTS: &[(&str, bool)] = &[ ("libp2p", cfg!(feature = "libp2p")), ("tor", cfg!(feature = "tor")), ]; +fn default_keep_actor() -> bool { + true +} fn default_log_format() -> String { "auto".to_owned() } |
