Skip to content

Commit

Permalink
fix: remove overwrite of config file
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Feb 7, 2024
1 parent fe16edf commit d437286
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/chainhook-cli/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ async fn handle_command(opts: Opts, ctx: Context) -> Result<(), String> {
let mut config =
Config::default(cmd.devnet, cmd.testnet, cmd.mainnet, &cmd.config_path)?;

config.monitoring.prometheus_monitoring_port = cmd.prometheus_monitoring_port;
if cmd.prometheus_monitoring_port.is_some() {
config.monitoring.prometheus_monitoring_port = cmd.prometheus_monitoring_port;
}

let predicates = cmd
.predicates_paths
Expand Down

0 comments on commit d437286

Please sign in to comment.