Skip to content

Commit

Permalink
fix from <-> to
Browse files Browse the repository at this point in the history
  • Loading branch information
timglabisch committed Mar 30, 2022
1 parent da22f2c commit ed425b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions mehsh_check/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ fn try_main(opt: Opt, rt: Runtime) -> Result<(), Error> {
continue;
}

if analysis_entry.to.identifier.to_string() == name_self.as_str() {
continue;
}

println!(
"preparing analysis {} from: {} to: {}",
&analysis_entry.name, &analysis_entry.from.identifier, &analysis_entry.to.identifier
Expand Down
2 changes: 1 addition & 1 deletion mehsh_common/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ impl Config {
key,
ConfigAnalysis {
from: self.get_server_by_identifier(&from.identifier).expect("invalid server in analysis from, should never happen.").clone(),
to: self.get_server_by_identifier(&from.identifier).expect("invalid server in analysis from, should never happen.").clone(),
to: self.get_server_by_identifier(&to.identifier).expect("invalid server in analysis to, should never happen.").clone(),
name: analysis_entry.name.clone(),
command: analysis_entry.command.clone(),
min_loss: analysis_entry.min_loss.clone(),
Expand Down

0 comments on commit ed425b1

Please sign in to comment.