From d5940c31921778e50dd44e71ba9a547a26687cea Mon Sep 17 00:00:00 2001 From: andrussal Date: Thu, 18 Dec 2025 09:26:47 +0100 Subject: [PATCH] examples: unify demo env vars --- examples/src/bin/compose_runner.rs | 15 +++------------ examples/src/bin/k8s_runner.rs | 15 +++------------ examples/src/bin/local_runner.rs | 15 +++------------ 3 files changed, 9 insertions(+), 36 deletions(-) diff --git a/examples/src/bin/compose_runner.rs b/examples/src/bin/compose_runner.rs index d077288..4f39c83 100644 --- a/examples/src/bin/compose_runner.rs +++ b/examples/src/bin/compose_runner.rs @@ -40,20 +40,11 @@ async fn main() { tracing_subscriber::fmt::init(); - let validators = read_env_any( - &["NOMOS_DEMO_VALIDATORS", "COMPOSE_DEMO_VALIDATORS"], - DEFAULT_VALIDATORS, - ); + let validators = read_env_any(&["NOMOS_DEMO_VALIDATORS"], DEFAULT_VALIDATORS); - let executors = read_env_any( - &["NOMOS_DEMO_EXECUTORS", "COMPOSE_DEMO_EXECUTORS"], - DEFAULT_EXECUTORS, - ); + let executors = read_env_any(&["NOMOS_DEMO_EXECUTORS"], DEFAULT_EXECUTORS); - let run_secs = read_env_any( - &["NOMOS_DEMO_RUN_SECS", "COMPOSE_DEMO_RUN_SECS"], - DEFAULT_RUN_SECS, - ); + let run_secs = read_env_any(&["NOMOS_DEMO_RUN_SECS"], DEFAULT_RUN_SECS); info!( validators, diff --git a/examples/src/bin/k8s_runner.rs b/examples/src/bin/k8s_runner.rs index e194972..d9a9ea9 100644 --- a/examples/src/bin/k8s_runner.rs +++ b/examples/src/bin/k8s_runner.rs @@ -21,18 +21,9 @@ const DA_BLOB_RATE: u64 = 1; async fn main() { tracing_subscriber::fmt::init(); - let validators = read_env_any( - &["NOMOS_DEMO_VALIDATORS", "K8S_DEMO_VALIDATORS"], - DEFAULT_VALIDATORS, - ); - let executors = read_env_any( - &["NOMOS_DEMO_EXECUTORS", "K8S_DEMO_EXECUTORS"], - DEFAULT_EXECUTORS, - ); - let run_secs = read_env_any( - &["NOMOS_DEMO_RUN_SECS", "K8S_DEMO_RUN_SECS"], - DEFAULT_RUN_SECS, - ); + let validators = read_env_any(&["NOMOS_DEMO_VALIDATORS"], DEFAULT_VALIDATORS); + let executors = read_env_any(&["NOMOS_DEMO_EXECUTORS"], DEFAULT_EXECUTORS); + let run_secs = read_env_any(&["NOMOS_DEMO_RUN_SECS"], DEFAULT_RUN_SECS); info!(validators, executors, run_secs, "starting k8s runner demo"); if let Err(err) = run_k8s_case(validators, executors, Duration::from_secs(run_secs)).await { diff --git a/examples/src/bin/local_runner.rs b/examples/src/bin/local_runner.rs index 01d5477..dfd7575 100644 --- a/examples/src/bin/local_runner.rs +++ b/examples/src/bin/local_runner.rs @@ -24,18 +24,9 @@ async fn main() { process::exit(1); } - let validators = read_env_any( - &["NOMOS_DEMO_VALIDATORS", "LOCAL_DEMO_VALIDATORS"], - DEFAULT_VALIDATORS, - ); - let executors = read_env_any( - &["NOMOS_DEMO_EXECUTORS", "LOCAL_DEMO_EXECUTORS"], - DEFAULT_EXECUTORS, - ); - let run_secs = read_env_any( - &["NOMOS_DEMO_RUN_SECS", "LOCAL_DEMO_RUN_SECS"], - DEFAULT_RUN_SECS, - ); + let validators = read_env_any(&["NOMOS_DEMO_VALIDATORS"], DEFAULT_VALIDATORS); + let executors = read_env_any(&["NOMOS_DEMO_EXECUTORS"], DEFAULT_EXECUTORS); + let run_secs = read_env_any(&["NOMOS_DEMO_RUN_SECS"], DEFAULT_RUN_SECS); info!( validators,