implement the get_batch method

This commit is contained in:
Tamo 2022-09-06 23:49:19 +02:00 committed by Clément Renault
parent 1a47949063
commit 22d24dba56
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 226 additions and 50 deletions

View file

@ -1,7 +1,17 @@
use milli::heed;
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("Index not found")]
IndexNotFound,
#[error("Corrupted task queue.")]
CorruptedTaskQueue,
#[error(transparent)]
Heed(#[from] heed::Error),
#[error(transparent)]
Milli(#[from] milli::Error),
#[error(transparent)]
Anyhow(#[from] anyhow::Error),
}