Skip to content

Commit

Permalink
fix warn
Browse files Browse the repository at this point in the history
  • Loading branch information
JackTan25 committed Jul 12, 2023
1 parent d3bb666 commit 7a2411d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl StatisticsSender {
let mut sleep_future = Box::pin(sleep(Duration::from_millis(100)));
let mut notified = Box::pin(shutdown_flag_receiver.recv());

while true {
loop {
match futures::future::select(sleep_future, notified).await {
Either::Right((Ok(None), _)) | Either::Right((Err(_), _)) => {
break;
Expand Down

0 comments on commit 7a2411d

Please sign in to comment.