mirror of
https://github.com/kanidm/kanidm.git
synced 2025-05-21 08:23:55 +02:00
Remove replication is in dev flag (#2535)
This commit is contained in:
parent
6b44495704
commit
3549c8562f
|
@ -134,9 +134,6 @@ pub struct ServerConfig {
|
|||
#[allow(dead_code)]
|
||||
db_arc_size: Option<usize>,
|
||||
#[serde(default)]
|
||||
|
||||
/// Enable replication, this is a development feature and not yet ready for production use.
|
||||
pub i_acknowledge_that_replication_is_in_development: bool,
|
||||
#[serde(rename = "replication")]
|
||||
/// Replication configuration, this is a development feature and not yet ready for production use.
|
||||
pub repl_config: Option<ReplicationConfiguration>,
|
||||
|
@ -308,13 +305,6 @@ impl ServerConfig {
|
|||
});
|
||||
}
|
||||
}
|
||||
"I_ACKNOWLEDGE_THAT_REPLICATION_IS_IN_DEVELOPMENT" => {
|
||||
self.i_acknowledge_that_replication_is_in_development =
|
||||
value.parse().map_err(|_| {
|
||||
"Failed to parse terribly long confirmation of replication beta-ness!"
|
||||
.to_string()
|
||||
})?;
|
||||
}
|
||||
"REPLICATION_BINDADDRESS" => {
|
||||
let repl_bind_address = value
|
||||
.parse()
|
||||
|
|
|
@ -357,12 +357,6 @@ async fn kanidm_main() -> ExitCode {
|
|||
}
|
||||
};
|
||||
|
||||
// Stop early if replication was found
|
||||
if sconfig.repl_config.is_some() && !sconfig.i_acknowledge_that_replication_is_in_development {
|
||||
error!("Unable to proceed. Replication should not be configured manually.");
|
||||
return ExitCode::FAILURE;
|
||||
}
|
||||
|
||||
#[cfg(target_family = "unix")]
|
||||
{
|
||||
let cfg_meta = match metadata(&cfg_path) {
|
||||
|
|
Loading…
Reference in a new issue