Remove CLI flag from pageserver binary as we're using config field instead

Co-Authored-By: John Spray <john@neon.tech>
This commit is contained in:
Devin AI
2025-04-15 09:27:47 +00:00
parent 0efe08b74f
commit dea05ed952

View File

@@ -79,8 +79,6 @@ fn main() -> anyhow::Result<()> {
return Ok(());
}
let cli_dev_mode = arg_matches.get_flag("dev");
// Initialize up failpoints support
let scenario = failpoint_support::init();
@@ -101,9 +99,7 @@ fn main() -> anyhow::Result<()> {
let (conf, ignored) = initialize_config(&identity_file_path, &cfg_file_path, &workdir)?;
let dev_mode = cli_dev_mode || conf.dev_mode;
if !dev_mode {
if !conf.dev_mode {
if matches!(conf.http_auth_type, AuthType::Trust)
|| matches!(conf.pg_auth_type, AuthType::Trust)
{
@@ -834,12 +830,6 @@ fn cli() -> Command {
.action(ArgAction::SetTrue)
.help("Show enabled compile time features"),
)
.arg(
Arg::new("dev")
.long("dev")
.action(ArgAction::SetTrue)
.help("Run in development mode (disables security checks)"),
)
}
#[test]