Skip to content

Commit

Permalink
chore: rm unused error variants
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Nov 21, 2024
1 parent 6f6fb00 commit fccab11
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions crates/storage/errors/src/provider.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::{db::DatabaseError, lockfile::StorageLockError, writer::UnifiedStorageWriterError};
use alloy_eips::BlockHashOrNumber;
use alloy_primitives::{Address, BlockHash, BlockNumber, TxNumber, B256, U256};
use alloy_primitives::{Address, BlockHash, BlockNumber, TxNumber, B256};
use derive_more::Display;
use reth_primitives::{GotExpected, StaticFileSegment, TxHashOrNumber};

Expand Down Expand Up @@ -81,15 +81,6 @@ pub enum ProviderError {
/// Unable to find the safe block.
#[display("safe block does not exist")]
SafeBlockNotFound,
/// Mismatch of sender and transaction.
#[display("mismatch of sender and transaction id {tx_id}")]
MismatchOfTransactionAndSenderId {
/// The transaction ID.
tx_id: TxNumber,
},
/// Block body wrong transaction count.
#[display("stored block indices does not match transaction count")]
BlockBodyTransactionCount,
/// Thrown when the cache service task dropped.
#[display("cache service task stopped")]
CacheServiceUnavailable,
Expand Down Expand Up @@ -139,9 +130,6 @@ pub enum ProviderError {
/// Static File Provider was initialized as read-only.
#[display("cannot get a writer on a read-only environment.")]
ReadOnlyStaticFileAccess,
/// Error encountered when the block number conversion from U256 to u64 causes an overflow.
#[display("failed to convert block number U256 to u64: {_0}")]
BlockNumberOverflow(U256),
/// Consistent view error.
#[display("failed to initialize consistent view: {_0}")]
ConsistentView(Box<ConsistentViewError>),
Expand Down

0 comments on commit fccab11

Please sign in to comment.