Skip to content

Commit

Permalink
fix: reverse logic of disabling http_api
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Jan 11, 2024
1 parent 4a5da1d commit ea7b878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/chainhook-cli/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl Config {
http_api: match config_file.http_api {
None => PredicatesApi::Off,
Some(http_api) => match http_api.disabled {
Some(false) => PredicatesApi::Off,
Some(true) => PredicatesApi::Off,
_ => PredicatesApi::On(PredicatesApiConfig {
http_port: http_api.http_port.unwrap_or(DEFAULT_CONTROL_PORT),
display_logs: http_api.display_logs.unwrap_or(true),
Expand Down

0 comments on commit ea7b878

Please sign in to comment.