Skip to content

Commit

Permalink
3933 fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
pls148 committed Dec 4, 2024
1 parent 0ba3219 commit 1d73789
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions crates/task-impls/src/quorum_vote/drb_computations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,24 +84,23 @@ impl<TYPES: NodeType> DrbComputations<TYPES> {
self.results.insert(*task_epoch, result);
let result = *task_epoch == epoch;
self.task = None;
return result;
result
}
Err(e) => {
tracing::error!("error joining DRB computation task: {e:?}");
return false;
false
}
}
} else if *task_epoch == epoch {
true
} else {
if *task_epoch == epoch {
return true;
} else {
join_handle.abort();
self.task = None;
return false;
}
join_handle.abort();
self.task = None;
false
}
} else {
false
}
false
}

/// Stores a seed for a particular epoch for later use by start_new_task()
Expand Down

0 comments on commit 1d73789

Please sign in to comment.