Skip to content

Commit

Permalink
Fix warning of ignored output
Browse files Browse the repository at this point in the history
  • Loading branch information
haixuanTao committed Jan 15, 2025
1 parent 424a7c2 commit e23ffee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apis/rust/node/src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,8 @@ impl DoraNode {

fn validate_output(&mut self, output_id: &DataId) -> bool {
if !self.node_config.outputs.contains(output_id) {
if self.warned_unknown_output.contains(output_id) {
warn!("Output {output_id} is not part of the node's output list.");
self.warned_unknown_output.insert(output_id.clone());
} else {
if !self.warned_unknown_output.contains(output_id) {
warn!("Ignoring output `{output_id}` not in node's output list.");
self.warned_unknown_output.insert(output_id.clone());
}
false
Expand Down

0 comments on commit e23ffee

Please sign in to comment.