mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
write most of the run loop
This commit is contained in:
parent
e9d2689499
commit
d7146d7b21
3 changed files with 80 additions and 35 deletions
|
@ -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)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue