improve the way we access the mutex

This commit is contained in:
Tamo 2024-11-19 19:40:31 +01:00
parent 4abcd9c04e
commit b906e3ed70
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
34 changed files with 155 additions and 155 deletions

View file

@ -42,7 +42,7 @@ async fn get_batch(
let task_view = BatchView::from_batch(batch);
Ok(HttpResponse::Ok().json(task_view))
} else {
Err(index_scheduler::Error::TaskNotFound(batch_uid).into())
Err(index_scheduler::Error::BatchNotFound(batch_uid).into())
}
}