mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-05 02:55: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);
|
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);
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user