Skip to content

Commit

Permalink
feat: plugin executor configurable
Browse files Browse the repository at this point in the history
Signed-off-by: Aisha M <[email protected]>
  • Loading branch information
aamohd committed Jan 4, 2025
1 parent 1f7811a commit b4e1b89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 1 addition & 0 deletions hipcheck/src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ impl ExecConfig {
/* jitter_percent */ plugin_data.jitter.percent,
/*grpc_buffer*/ plugin_data.grpc_buffer.size,
)
}
}

impl FromStr for ExecConfig {
Expand Down
12 changes: 0 additions & 12 deletions hipcheck/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,18 +514,6 @@ fn cmd_plugin(args: PluginArgs, config: &CliConfig) -> ExitCode {
.context("Failed to locate the exec config. Please make sure the exec config file exists somewhere in this directory or one of its parents as '.hipcheck/Exec.kdl'.")
};

let exec_config = match res_exec_config {
Ok(config) => {
config
},
Err(e) => {
Shell::print_error(&hc_error!("Failed to resolve the exec config {}", e), Format::Human);
return ExitCode::FAILURE;
}

config
}.unwrap();

let exec_config = match res_exec_config {
Ok(config) => {
config
Expand Down

0 comments on commit b4e1b89

Please sign in to comment.