Skip to content
Snippets Groups Projects
Unverified Commit fff2bc79 authored by bgallois's avatar bgallois
Browse files

refactor events and errors pallet-distance

parent b3a2abaa
Branches
Tags
No related merge requests found
Pipeline #34573 failed
...@@ -165,15 +165,21 @@ pub mod pallet { ...@@ -165,15 +165,21 @@ pub mod pallet {
#[pallet::error] #[pallet::error]
pub enum Error<T> { pub enum Error<T> {
/// Distance already in evaluation for caller.
AlreadyInEvaluation, AlreadyInEvaluation,
CannotReserve, /// Too many evaluation requests for this author.
ManyEvaluationsByAuthor, ManyEvaluationsByAuthor,
/// Too many evaluations for this block.
ManyEvaluationsInBlock, ManyEvaluationsInBlock,
/// No author for this block.
NoAuthor, NoAuthor,
/// Caller has no identity.
NoIdentity, NoIdentity,
NonEligibleForEvaluation, /// Evaluation queue is full.
QueueFull, QueueFull,
/// Too many evaluators in the current evaluation pool.
TooManyEvaluators, TooManyEvaluators,
/// Evaluation result has a wrong length.
WrongResultLength, WrongResultLength,
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment