Skip to content

Commit 6b9ae52

Browse files
committed
Change: remove error AddLearnerError::Exists
Even when the learner to add already exists, the caller may still want to block until the replication catches up. Thus it does not expect an error. And `Exists` is not an issue the caller has to deal with, it does not have to be an error.
1 parent ac7ea58 commit 6b9ae52

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

openraft/src/error.rs

-3
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,6 @@ pub enum AddLearnerError<NID: NodeId> {
136136
#[error(transparent)]
137137
ForwardToLeader(#[from] ForwardToLeader<NID>),
138138

139-
#[error("node {0} is already a learner")]
140-
Exists(NID),
141-
142139
#[error(transparent)]
143140
MissingNodeInfo(#[from] MissingNodeInfo<NID>),
144141

0 commit comments

Comments
 (0)