mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-30 03:01:58 -04:00
Add Clonable Error Handling to ProviderError Enum (#14712)
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user