diff --git a/index-scheduler/src/lib.rs b/index-scheduler/src/lib.rs index 7644685a6..cf0121ef8 100644 --- a/index-scheduler/src/lib.rs +++ b/index-scheduler/src/lib.rs @@ -575,14 +575,14 @@ impl IndexScheduler { run.breakpoint(Breakpoint::Init); 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 { match run.tick().await { Ok(TickOutcome::TickAgain(_)) => (), Ok(TickOutcome::WaitForSignal) => { 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) => { log::error!("{}", e); diff --git a/meilisearch/src/routes/tasks.rs b/meilisearch/src/routes/tasks.rs index 9c9fd2aa4..5a5a2215a 100644 --- a/meilisearch/src/routes/tasks.rs +++ b/meilisearch/src/routes/tasks.rs @@ -18,7 +18,6 @@ use serde_json::json; use time::format_description::well_known::Rfc3339; use time::macros::format_description; use time::{Date, Duration, OffsetDateTime, Time}; -use tokio::task; use super::SummarizedTaskView; use crate::analytics::Analytics;