Skip to content

Commit

Permalink
Default parameter for jwtsecret path, v bump to 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mskrzypkows committed Feb 21, 2025
1 parent 5c30076 commit 6a94ebe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Node/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "taiko_preconf_avs_node"
version = "0.2.1"
version = "0.2.2"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
9 changes: 7 additions & 2 deletions Node/src/utils/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,13 @@ impl Config {
.parse::<bool>()
.expect("ALWAYS_PUSH_LOOKAHEAD must be a boolean");

let jwt_secret_file_path = std::env::var("JWT_SECRET_FILE_PATH")
.expect("JWT_SECRET_FILE_PATH env variable must be set");
let jwt_secret_file_path = std::env::var("JWT_SECRET_FILE_PATH").unwrap_or({
warn!(
"No JWT secret file path found in {} env var, using default",
"JWT_SECRET_FILE_PATH"
);
"/tmp/jwtsecret".to_string()
});

let rpc_client_timeout = std::env::var("RPC_CLIENT_TIMEOUT_SEC")
.unwrap_or("10".to_string())
Expand Down

0 comments on commit 6a94ebe

Please sign in to comment.