Finish most of the channels types

This commit is contained in:
Clément Renault
2024-11-27 13:36:30 +01:00
parent e1e76f39d0
commit 6ac5b3b136
4 changed files with 474 additions and 331 deletions

View File

@ -62,9 +62,14 @@ pub enum InternalError {
#[error(transparent)]
Store(#[from] MdbError),
#[error("Cannot delete {key:?} from database {database_name}: {error}")]
StoreDeletion { database_name: &'static str, key: Vec<u8>, error: heed::Error },
StoreDeletion { database_name: &'static str, key: Box<[u8]>, error: heed::Error },
#[error("Cannot insert {key:?} and value with length {value_length} into database {database_name}: {error}")]
StorePut { database_name: &'static str, key: Vec<u8>, value_length: usize, error: heed::Error },
StorePut {
database_name: &'static str,
key: Box<[u8]>,
value_length: usize,
error: heed::Error,
},
#[error(transparent)]
Utf8(#[from] str::Utf8Error),
#[error("An indexation process was explicitly aborted")]