Add Clonable Error Handling to ProviderError Enum (#14712)

This commit is contained in:
fuder.eth
2025-02-26 09:29:33 +02:00
committed by GitHub
parent c7a1356a10
commit 1809ee5330
3 changed files with 3 additions and 3 deletions

View File

@@ -492,7 +492,7 @@ pub struct ValidationApiInner<Provider, E: BlockExecutorProvider> {
metrics: ValidationMetrics,
}
impl<Proivder, E: BlockExecutorProvider> fmt::Debug for ValidationApiInner<Proivder, E> {
impl<Provider, E: BlockExecutorProvider> fmt::Debug for ValidationApiInner<Provider, E> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("ValidationApiInner").finish_non_exhaustive()
}

View File

@@ -140,7 +140,7 @@ pub enum ProviderError {
/// Received invalid output from configured storage implementation.
#[error("received invalid output from storage")]
InvalidStorageOutput,
/// Any other error type wrapped into a clonable [`AnyError`].
/// Any other error type wrapped into a cloneable [`AnyError`].
#[error(transparent)]
Other(#[from] AnyError),
}

View File

@@ -34,7 +34,7 @@ pub struct ValidationTask {
}
impl ValidationTask {
/// Creates a new clonable task pair
/// Creates a new cloneable task pair
pub fn new() -> (ValidationJobSender, Self) {
let (tx, rx) = mpsc::channel(1);
(ValidationJobSender { tx }, Self::with_receiver(rx))