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) }