Skip to content

Commit

Permalink
Chore: Remove unused From<&Ent> for EffectiveMembership
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Mar 20, 2024
1 parent a229591 commit b3c1f46
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions openraft/src/membership/effective_membership.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::collections::BTreeSet;
use std::fmt::Debug;
use std::sync::Arc;

use crate::entry::RaftEntry;
use crate::log_id::RaftLogId;
use crate::node::Node;
use crate::quorum::Joint;
Expand Down Expand Up @@ -70,18 +69,6 @@ where
}
}

/// Build a EffectiveMembership from a membership config entry
impl<NID, N, Ent> From<&Ent> for EffectiveMembership<NID, N>
where
N: Node,
NID: NodeId,
Ent: RaftEntry<NID, N>,
{
fn from(v: &Ent) -> Self {
EffectiveMembership::new(Some(*v.get_log_id()), v.get_membership().unwrap().clone())
}
}

impl<NID, N> EffectiveMembership<NID, N>
where
N: Node,
Expand Down

0 comments on commit b3c1f46

Please sign in to comment.