Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Jan 27, 2025
1 parent f05ce4a commit 7d70edc
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions base_layer/wallet/src/output_manager_service/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ where
}
}

#[allow(clippy::too_many_lines)]
fn validate_outputs(&mut self) -> Result<u64, OutputManagerError> {
let current_base_node = self
.resources
Expand Down Expand Up @@ -651,13 +652,10 @@ where
},
event = base_node_service_event_stream.recv() => {
if let Ok(bn_event) = event {
match *bn_event{
BaseNodeEvent::NewBlockDetected(_hash, _height) => {
debug!(target: LOG_TARGET, "TXO Validation Protocol (Id: {}) resetting because base node height changed", id);
continue 'outer;
},
_ => {}
}
if let BaseNodeEvent::NewBlockDetected(_hash, _height) = *bn_event {
debug!(target: LOG_TARGET, "TXO Validation Protocol (Id: {}) resetting because base node height changed", id);
continue 'outer;
}
}
}
_ = base_node_watch.changed() => {
Expand Down

0 comments on commit 7d70edc

Please sign in to comment.