This commit is contained in:
marin postma 2021-06-17 14:38:52 +02:00
parent abdf642d68
commit fa573dabf0
No known key found for this signature in database
GPG key ID: 6088B7721C3E39F9
10 changed files with 19 additions and 18 deletions

View file

@ -7,6 +7,7 @@ use crate::index_controller::index_actor::error::IndexActorError;
pub type Result<T> = std::result::Result<T, UpdateActorError>;
#[derive(Debug, thiserror::Error)]
#[allow(clippy::large_enum_variant)]
pub enum UpdateActorError {
#[error("Update {0} doesn't exist.")]
UnexistingUpdate(u64),
@ -33,8 +34,7 @@ impl From<tokio::sync::oneshot::error::RecvError> for UpdateActorError {
}
internal_error!(
UpdateActorError:
heed::Error,
UpdateActorError: heed::Error,
std::io::Error,
serde_json::Error,
actix_http::error::PayloadError,