From 655705eb2ba982ec037045c201c4d348e0f2723b Mon Sep 17 00:00:00 2001 From: Tamo Date: Mon, 17 Oct 2022 17:14:44 +0200 Subject: [PATCH] remove useless todo --- index-scheduler/src/lib.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/index-scheduler/src/lib.rs b/index-scheduler/src/lib.rs index a08a71846..58e1f1a6d 100644 --- a/index-scheduler/src/lib.rs +++ b/index-scheduler/src/lib.rs @@ -507,15 +507,9 @@ impl IndexScheduler { (bitmap.insert(task.uid)); })?; - match wtxn.commit() { - Ok(()) => (), - _e @ Err(_) => { - todo!("remove the data associated with the task"); - // _e?; - } - } - + wtxn.commit()?; self.wake_up.signal(); + Ok(task) }