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 80ea38f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions crates/storage/errors/src/provider.rs
Original file line number Diff line number Diff line change
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 80ea38f

Please sign in to comment.