Skip to content

Commit

Permalink
Change: remove unused error CommittedAdvanceTooMany
Browse files Browse the repository at this point in the history
Upgrade tip:

Do not use it.
  • Loading branch information
drmingdrmer committed May 14, 2023
1 parent b12211c commit e78bbff
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions openraft/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,14 +318,6 @@ pub struct HigherVote<NID: NodeId> {
pub mine: Vote<NID>,
}

#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize), serde(bound = ""))]
#[error("leader committed index {committed_index} advances target log index {target_index} too many")]
pub struct CommittedAdvanceTooMany {
pub committed_index: u64,
pub target_index: u64,
}

/// Error that indicates a **temporary** network error and when it is returned, Openraft will retry
/// immediately.
///
Expand Down

0 comments on commit e78bbff

Please sign in to comment.