mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 12:05:05 +08:00
Apply suggestions from code review
Co-authored-by: Tamo <tamo@meilisearch.com>
This commit is contained in:
parent
568199fc0d
commit
ab4e649221
@ -58,6 +58,7 @@ impl FileStore {
|
|||||||
|
|
||||||
Ok((uuid, update_file))
|
Ok((uuid, update_file))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates a new temporary update file with the given Uuid.
|
/// Creates a new temporary update file with the given Uuid.
|
||||||
/// A call to `persist` is needed to persist the file in the database.
|
/// A call to `persist` is needed to persist the file in the database.
|
||||||
pub fn new_update_woth_uuid(&self, uuid: u128) -> Result<(Uuid, File)> {
|
pub fn new_update_woth_uuid(&self, uuid: u128) -> Result<(Uuid, File)> {
|
||||||
|
@ -442,7 +442,7 @@ impl IndexScheduler {
|
|||||||
match batch {
|
match batch {
|
||||||
Batch::Cancel(_) => todo!(),
|
Batch::Cancel(_) => todo!(),
|
||||||
Batch::DeleteTasks(mut task) => {
|
Batch::DeleteTasks(mut task) => {
|
||||||
// 1. Retrieve the tasks that matched the quety at enqueue-time
|
// 1. Retrieve the tasks that matched the query at enqueue-time.
|
||||||
let matched_tasks =
|
let matched_tasks =
|
||||||
if let KindWithContent::DeleteTasks { tasks, query: _ } = &task.kind {
|
if let KindWithContent::DeleteTasks { tasks, query: _ } = &task.kind {
|
||||||
tasks
|
tasks
|
||||||
|
Loading…
Reference in New Issue
Block a user