Add state_dir to toml deserialization struct
state_dir is in the example splinterd.toml and should therefore be
supported by the deserialization/toml config system.
@@ -148,6 +148,7 @@ struct TomlConfig {
#[cfg(feature = "scabbard-database-support")]
scabbard_storage: Option<ScabbardStorageToml>,
config_dir: Option<String>,
+ state_dir: Option<String>,
// Deprecated values
cert_dir: Option<String>,
@@ -229,7 +230,8 @@ impl PartialConfigBuilder for TomlPartialConfigBuilder {
.with_heartbeat(self.toml_config.heartbeat)
.with_admin_timeout(self.toml_config.admin_timeout)
.with_peering_key(self.toml_config.peering_key)
- .with_config_dir(self.toml_config.config_dir);
+ .with_config_dir(self.toml_config.config_dir)
+ .with_state_dir(self.toml_config.state_dir);
#[cfg(feature = "https-bind")]
{
