mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-04 10:35:46 +01:00
fix a few warnings
This commit is contained in:
parent
b66bf049b5
commit
0d20d08daf
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user