Skip to content

Commit

Permalink
chore(batcher): remove unused error (#1817)
Browse files Browse the repository at this point in the history
  • Loading branch information
yair-starkware authored Nov 11, 2024
1 parent 1ae760e commit b43abae
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions crates/batcher/src/batcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,6 @@ impl BatcherStorageWriterTrait for papyrus_storage::StorageWriter {
impl From<StartHeightError> for BatcherError {
fn from(err: StartHeightError) -> Self {
match err {
StartHeightError::AlreadyWorkingOnHeight { active_height, new_height } => {
BatcherError::AlreadyWorkingOnHeight { active_height, new_height }
}
StartHeightError::HeightAlreadyPassed { storage_height, requested_height } => {
BatcherError::HeightAlreadyPassed { storage_height, requested_height }
}
Expand Down
2 changes: 0 additions & 2 deletions crates/batcher/src/proposal_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ use crate::transaction_provider::ProposeTransactionProvider;

#[derive(Debug, Error)]
pub enum StartHeightError {
#[error("Can't start new height {new_height} while working on height {active_height}.")]
AlreadyWorkingOnHeight { active_height: BlockNumber, new_height: BlockNumber },
#[error(
"Requested height {requested_height} is lower than the current storage height \
{storage_height}."
Expand Down
4 changes: 0 additions & 4 deletions crates/batcher_types/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ use crate::batcher_types::ProposalId;

#[derive(Clone, Debug, Error, PartialEq, Eq, Serialize, Deserialize)]
pub enum BatcherError {
#[error(
"Already working on height {active_height}, can't start working on height {new_height}."
)]
AlreadyWorkingOnHeight { active_height: BlockNumber, new_height: BlockNumber },
#[error(
"Decision reached for proposal with ID {proposal_id} that does not exist (might still \
being executed)."
Expand Down

0 comments on commit b43abae

Please sign in to comment.