From 591527a99d3e893eb908067d732af86a4e3ecf42 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Mon, 17 Oct 2022 18:11:28 +0200 Subject: [PATCH] Prefer using TaskDeletion in the dumps --- dump/src/lib.rs | 4 ++-- index-scheduler/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dump/src/lib.rs b/dump/src/lib.rs index ecd34b111..da98f9d2a 100644 --- a/dump/src/lib.rs +++ b/dump/src/lib.rs @@ -117,7 +117,7 @@ pub enum KindDump { query: String, tasks: Vec, }, - DeleteTasks { + TasksDeletion { query: String, tasks: RoaringBitmap, }, @@ -186,7 +186,7 @@ impl From for KindDump { KindDump::TaskCancelation { query, tasks } } KindWithContent::TaskDeletion { query, tasks } => { - KindDump::DeleteTasks { query, tasks } + KindDump::TasksDeletion { query, tasks } } KindWithContent::DumpExport { dump_uid, diff --git a/index-scheduler/src/lib.rs b/index-scheduler/src/lib.rs index 5be805377..ad8b8f9e0 100644 --- a/index-scheduler/src/lib.rs +++ b/index-scheduler/src/lib.rs @@ -526,7 +526,7 @@ impl IndexScheduler { KindDump::TaskCancelation { query, tasks } => { KindWithContent::TaskCancelation { query, tasks } } - KindDump::DeleteTasks { query, tasks } => { + KindDump::TasksDeletion { query, tasks } => { KindWithContent::TaskDeletion { query, tasks } } KindDump::DumpExport {