Remove replication is in dev flag ()

This commit is contained in:
Firstyear 2024-02-16 11:39:43 +10:00 committed by GitHub
parent 6b44495704
commit 3549c8562f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 16 deletions
server
core/src
daemon/src

View file

@ -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()

View file

@ -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) {