From fff2bc790becd5499c65faedd115154d72faf89c Mon Sep 17 00:00:00 2001 From: bgallois <benjamin@gallois.cc> Date: Wed, 29 Nov 2023 16:30:49 +0100 Subject: [PATCH] refactor events and errors pallet-distance --- pallets/distance/src/lib.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pallets/distance/src/lib.rs b/pallets/distance/src/lib.rs index d467368e6..0500c6df7 100644 --- a/pallets/distance/src/lib.rs +++ b/pallets/distance/src/lib.rs @@ -165,15 +165,21 @@ pub mod pallet { #[pallet::error] pub enum Error<T> { + /// Distance already in evaluation for caller. AlreadyInEvaluation, - CannotReserve, + /// Too many evaluation requests for this author. ManyEvaluationsByAuthor, + /// Too many evaluations for this block. ManyEvaluationsInBlock, + /// No author for this block. NoAuthor, + /// Caller has no identity. NoIdentity, - NonEligibleForEvaluation, + /// Evaluation queue is full. QueueFull, + /// Too many evaluators in the current evaluation pool. TooManyEvaluators, + /// Evaluation result has a wrong length. WrongResultLength, } -- GitLab