From ab4e6492216671f3b639aa3ba7ad8eb2a3fe48f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Lecrenier?= Date: Tue, 11 Oct 2022 09:53:08 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Tamo --- file-store/src/lib.rs | 1 + index-scheduler/src/batch.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/file-store/src/lib.rs b/file-store/src/lib.rs index a9df34288..805a78b72 100644 --- a/file-store/src/lib.rs +++ b/file-store/src/lib.rs @@ -58,6 +58,7 @@ impl FileStore { Ok((uuid, update_file)) } + /// Creates a new temporary update file with the given Uuid. /// 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)> { diff --git a/index-scheduler/src/batch.rs b/index-scheduler/src/batch.rs index 85a5bfe21..bd4d852f7 100644 --- a/index-scheduler/src/batch.rs +++ b/index-scheduler/src/batch.rs @@ -442,7 +442,7 @@ impl IndexScheduler { match batch { Batch::Cancel(_) => todo!(), 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 = if let KindWithContent::DeleteTasks { tasks, query: _ } = &task.kind { tasks