Skip to content

Commit

Permalink
add capacity error to state space error
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKitsune committed Aug 29, 2024
1 parent 107bbb0 commit 9d9b00b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/state_space/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use crate::errors::{AMMError, ArithmeticError, EventLogError};

use alloy::{primitives::Address, rpc::types::eth::Block, transports::TransportError};

use arraydeque::CapacityError;
use thiserror::Error;

#[derive(Error, Debug)]
Expand Down Expand Up @@ -29,6 +30,8 @@ pub enum StateSpaceError {
#[error(transparent)]
StateChangeSendError(#[from] tokio::sync::mpsc::error::SendError<Vec<Address>>),
#[error(transparent)]
CapacityError(#[from] CapacityError),
#[error(transparent)]
BlockSendError(#[from] tokio::sync::mpsc::error::SendError<Block>),
#[error("Already listening for state changes")]
AlreadyListeningForStateChanges,
Expand Down

0 comments on commit 9d9b00b

Please sign in to comment.