Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ impl From<PartitionProcessorRpcError> for RpcErrorKind {
match value {
PartitionProcessorRpcError::NotLeader(_) => RpcErrorKind::NotLeader,
PartitionProcessorRpcError::LostLeadership(_) => RpcErrorKind::LostLeadership,
PartitionProcessorRpcError::Busy => RpcErrorKind::Busy,
PartitionProcessorRpcError::Internal(msg) => RpcErrorKind::Internal(msg),
PartitionProcessorRpcError::Starting => RpcErrorKind::Starting,
PartitionProcessorRpcError::Stopping => RpcErrorKind::Stopping,
Expand Down
8 changes: 3 additions & 5 deletions crates/types/src/net/partition_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,9 @@ pub enum PartitionProcessorRpcError {
NotLeader(PartitionId),
#[error("not leader anymore for partition '{0}'")]
LostLeadership(PartitionId),
// todo: remove in 1.5
#[error("rejecting rpc because too busy")]
// #[deprecated(since = "1.4.0", note = "retained for backwards compatibility with <= 1.3.2 nodes, remove in 1.5")]
Busy,
// Removed in 1.6.0. Kept here to prevent reintroduction at a later point.
//#[error("rejecting rpc because too busy")]
//Busy,
#[error("internal error: {0}")]
Internal(String),
#[error("partition processor starting")]
Expand All @@ -149,7 +148,6 @@ impl PartitionProcessorRpcError {
PartitionProcessorRpcError::NotLeader(_) => true,
PartitionProcessorRpcError::LostLeadership(_) => true,
PartitionProcessorRpcError::Stopping => true,
PartitionProcessorRpcError::Busy => false,
PartitionProcessorRpcError::Internal(_) => false,
PartitionProcessorRpcError::Starting => false,
}
Expand Down
Loading