Skip to content

Commit

Permalink
rm env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
imabdulbasit committed May 20, 2024
1 parent 4df8393 commit 2fce626
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions public-env-vars.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# TOML file for the `/env` route of Config endpoint
# This file is used when the Config module is enabled.
# It specifies a list of environment variable names (`vars`)
# It specifies a list of environment variable names (`variables`)
# that will be exposed by the `/env` route.


vars = [
variables = [
"ESPRESSO_SEQUENCER_ORCHESTRATOR_URL",
"ESPRESSO_SEQUENCER_CDN_ENDPOINT",
"ESPRESSO_SEQUENCER_LIBP2P_BIND_ADDRESS",
Expand All @@ -23,7 +23,6 @@ vars = [
"ESPRESSO_SEQUENCER_POSTGRES_PORT",
"ESPRESSO_SEQUENCER_POSTGRES_DATABASE",
"ESPRESSO_SEQUENCER_POSTGRES_USER",
"ESPRESSO_SEQUENCER_POSTGRES_PASSWORD",
"ESPRESSO_SEQUENCER_POSTGRES_USE_TLS",
"ESPRESSO_SEQUENCER_POSTGRES_PRUNE",
"ESPRESSO_SEQUENCER_PRUNER_PRUNING_THRESHOLD",
Expand Down Expand Up @@ -78,7 +77,6 @@ vars = [
"ESPRESSO_NASTY_CLIENT_WEIGHT_QUERY_BLOCK_STATE",
"ESPRESSO_NASTY_CLIENT_WEIGHT_QUERY_FEE_STATE",
"ESPRESSO_ORCHESTRATOR_PORT",
"ESPRESSO_ORCHESTRATOR_MANUAL_START_PASSWORD",
"ESPRESSO_ORCHESTRATOR_NUM_NODES",
"ESPRESSO_ORCHESTRATOR_START_DELAY",
"ESPRESSO_ORCHESTRATOR_NEXT_VIEW_TIMEOUT",
Expand All @@ -96,7 +94,6 @@ vars = [
"ESPRESSO_SUBMIT_TRANSACTIONS_MAX_NAMESPACE",
"ESPRESSO_SUBMIT_TRANSACTIONS_DELAY",
"ESPRESSO_SUBMIT_TRANSACTIONS_CHANNEL_BOUND",
"ESPRESSO_SUBMIT_TRANSACTIONS_SEED",
"ESPRESSO_SUBMIT_TRANSACTIONS_JOBS",
"ESPRESSO_SUBMIT_TRANSACTIONS_PENDING_TRANSACTIONS_WARNING_THRESHOLD",
"ESPRESSO_SUBMIT_TRANSACTIONS_SLOW_TRANSACTION_WARNING_THRESHOLD",
Expand Down
6 changes: 3 additions & 3 deletions sequencer/src/api/endpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ fn get_public_env_vars() -> Result<Vec<String>> {
let toml: toml::Value = toml::from_str(include_str!("../../../public-env-vars.toml"))?;

let keys = toml
.get("vars")
.ok_or_else(|| toml::de::Error::custom("vars not found"))?
.get("variables")
.ok_or_else(|| toml::de::Error::custom("variables not found"))?
.as_array()
.ok_or_else(|| toml::de::Error::custom("vars is not an array"))?
.ok_or_else(|| toml::de::Error::custom("variables is not an array"))?
.clone()
.into_iter()
.map(|v| v.try_into())
Expand Down

0 comments on commit 2fce626

Please sign in to comment.