From a9ef399a6b5ac619c8ab7ef8a3475530f8b60fcd Mon Sep 17 00:00:00 2001 From: ad hoc Date: Thu, 26 May 2022 12:04:27 +0200 Subject: [PATCH] processing::Nothing return BatchContent::Empty instead of panic --- meilisearch-lib/src/tasks/task_store/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-lib/src/tasks/task_store/mod.rs b/meilisearch-lib/src/tasks/task_store/mod.rs index a5227fe73..deb3f8191 100644 --- a/meilisearch-lib/src/tasks/task_store/mod.rs +++ b/meilisearch-lib/src/tasks/task_store/mod.rs @@ -158,7 +158,7 @@ impl TaskStore { debug_assert!(matches!(task.content, TaskContent::Dump { .. })); BatchContent::Dump(task) } - Processing::Nothing => unreachable!(), + Processing::Nothing => BatchContent::Empty, }; Ok((processing, content))