Skip to content

Commit

Permalink
refactor: apply cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Oct 3, 2024
1 parent 29c74f4 commit 5472de5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,10 @@ impl StacksDevnetApiK8sManager {
("V2_POX_MIN_AMOUNT_USTX".into(), "90000000260".into()),
("NODE_ENV".into(), "production".into()),
("STACKS_API_LOG_LEVEL".into(), "debug".into()),
("FAUCET_PRIVATE_KEY".into(), config.devnet_config.faucet_secret_key_hex.clone()),
(
"FAUCET_PRIVATE_KEY".into(),
config.devnet_config.faucet_secret_key_hex.clone(),
),
]);
self.deploy_configmap(
StacksDevnetConfigmap::StacksBlockchainApi,
Expand Down
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ async fn main() {
let config_path = match env::var("CONFIG_PATH") {
Ok(path) => path,
Err(_) => {
if cfg!(debug_assertions) { "./Config.toml".into() } else { "/etc/config/Config.toml".into() }
if cfg!(debug_assertions) {
"./Config.toml".into()
} else {
"/etc/config/Config.toml".into()
}
}
};
let config = ApiConfig::from_path(&config_path);
Expand Down

0 comments on commit 5472de5

Please sign in to comment.