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
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
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")]