Skip to content

Commit

Permalink
fix(dre): Fix the duplicate output (printout) of the SubnetChangeResp…
Browse files Browse the repository at this point in the history
…onse (#762)
  • Loading branch information
sasa-tomic authored Aug 21, 2024
1 parent 7d06094 commit b1130f0
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions rs/decentralization/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,24 +109,6 @@ impl Display for SubnetChangeResponse {

writeln!(f, "\n{}\n\n# Details\n\n", output)?;

writeln!(f, "Nodes removed:")?;
for (id, desc) in &self.removed_with_desc {
writeln!(f, " --> {} [{}]", id, desc).expect("write failed");
}
writeln!(f, "\nNodes added:")?;
for (id, desc) in &self.added_with_desc {
writeln!(f, " ++> {} [{}]", id, desc).expect("write failed");
}

writeln!(f, "Nodes removed:")?;
for (id, desc) in &self.removed_with_desc {
writeln!(f, " --> {} [selected based on {}]", id, desc).expect("write failed");
}
writeln!(f, "\nNodes added:")?;
for (id, desc) in &self.added_with_desc {
writeln!(f, " ++> {} [selected based on {}]", id, desc).expect("write failed");
}

writeln!(f, "Nodes removed:")?;
for (id, desc) in &self.removed_with_desc {
writeln!(f, " --> {} [selected based on {}]", id, desc).expect("write failed");
Expand Down

0 comments on commit b1130f0

Please sign in to comment.