Skip to content

Commit

Permalink
Make latest clippy happy (#410)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Castaño Arteaga <[email protected]>
  • Loading branch information
tegioz authored Oct 6, 2023
1 parent 5760621 commit 021f386
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ async fn shutdown_signal() {

// Wait for any of the signals
tokio::select! {
_ = ctrl_c => {},
_ = terminate => {},
() = ctrl_c => {},
() = terminate => {},
}
}
8 changes: 4 additions & 4 deletions src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ impl Processor {
Ok(None) => tokio::select! {
// No pending finished votes were found, pause unless
// we've been asked to stop
_ = sleep(VOTES_CLOSER_PAUSE_ON_NONE) => {},
() = sleep(VOTES_CLOSER_PAUSE_ON_NONE) => {},
_ = stop_rx.recv() => break,
},
Err(_) => {
// Something went wrong closing finished vote, pause
// unless we've been asked to stop
tokio::select! {
_ = sleep(VOTES_CLOSER_PAUSE_ON_ERROR) => {},
() = sleep(VOTES_CLOSER_PAUSE_ON_ERROR) => {},
_ = stop_rx.recv() => break,
}
}
Expand Down Expand Up @@ -184,7 +184,7 @@ impl Processor {
// Pause until it's time for the next run or exit if the votes
// processor has been asked to stop
tokio::select! {
_ = sleep(STATUS_CHECK_FREQUENCY) => {},
() = sleep(STATUS_CHECK_FREQUENCY) => {},
_ = stop_rx.recv() => break,
}
}
Expand Down Expand Up @@ -226,7 +226,7 @@ impl Processor {
// Pause until it's time for the next run or exit if the votes
// processor has been asked to stop
tokio::select! {
_ = sleep(AUTO_CLOSE_FREQUENCY) => {},
() = sleep(AUTO_CLOSE_FREQUENCY) => {},
_ = stop_rx.recv() => break,
}
}
Expand Down

0 comments on commit 021f386

Please sign in to comment.