Skip to content

Commit

Permalink
Remove no-longer-used block remover result/error types (MystenLabs#5080)
Browse files Browse the repository at this point in the history
  • Loading branch information
aschran authored Oct 10, 2022
1 parent b703077 commit df8e804
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions narwhal/types/src/primary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -738,22 +738,6 @@ pub struct BatchMessage {
pub batch: Batch,
}

pub type BlockRemoverResult<T> = Result<T, BlockRemoverError>;

#[derive(Clone, Debug)]
pub struct BlockRemoverError {
pub ids: Vec<CertificateDigest>,
pub error: BlockRemoverErrorKind,
}

// TODO: refactor BlockError & BlockRemoverError to be one type shared by get/remove collections.
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum BlockRemoverErrorKind {
Timeout,
Failed,
StorageFailure,
}

#[derive(Debug, Clone, Eq, PartialEq)]
pub enum BlockErrorKind {
BlockNotFound,
Expand Down

0 comments on commit df8e804

Please sign in to comment.