write most of the run loop

This commit is contained in:
Tamo
2022-09-16 01:58:08 +02:00
committed by Clément Renault
parent 4846a7c501
commit 1ea9c0b4c0
3 changed files with 80 additions and 35 deletions

View File

@ -44,7 +44,7 @@ impl IndexScheduler {
.collect::<Result<_>>()
}
pub(crate) fn update_task(&self, wtxn: &mut RwTxn, task: Task) -> Result<()> {
pub(crate) fn update_task(&self, wtxn: &mut RwTxn, task: &Task) -> Result<()> {
let old_task = self
.get_task(wtxn, task.uid)?
.ok_or(Error::CorruptedTaskQueue)?;