fix a few warnings

This commit is contained in:
Tamo 2023-08-08 11:39:48 +02:00
parent b66bf049b5
commit 0d20d08daf
2 changed files with 2 additions and 3 deletions

View File

@ -575,14 +575,14 @@ impl IndexScheduler {
run.breakpoint(Breakpoint::Init); run.breakpoint(Breakpoint::Init);
let wake_up = run.wake_up.clone(); let wake_up = run.wake_up.clone();
tokio::task::spawn_blocking(move || wake_up.wait()).await; let _ = tokio::task::spawn_blocking(move || wake_up.wait()).await;
loop { loop {
match run.tick().await { match run.tick().await {
Ok(TickOutcome::TickAgain(_)) => (), Ok(TickOutcome::TickAgain(_)) => (),
Ok(TickOutcome::WaitForSignal) => { Ok(TickOutcome::WaitForSignal) => {
let wake_up = run.wake_up.clone(); let wake_up = run.wake_up.clone();
tokio::task::spawn_blocking(move || wake_up.wait()).await; let _ = tokio::task::spawn_blocking(move || wake_up.wait()).await;
} }
Err(e) => { Err(e) => {
log::error!("{}", e); log::error!("{}", e);

View File

@ -18,7 +18,6 @@ use serde_json::json;
use time::format_description::well_known::Rfc3339; use time::format_description::well_known::Rfc3339;
use time::macros::format_description; use time::macros::format_description;
use time::{Date, Duration, OffsetDateTime, Time}; use time::{Date, Duration, OffsetDateTime, Time};
use tokio::task;
use super::SummarizedTaskView; use super::SummarizedTaskView;
use crate::analytics::Analytics; use crate::analytics::Analytics;