Skip to content

Commit

Permalink
remove unneeded bounds from Memberships trait
Browse files Browse the repository at this point in the history
  • Loading branch information
tbro committed Oct 28, 2024
1 parent 25c907e commit 6f5cb23
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/types/src/traits/election.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@
// along with the HotShot repository. If not, see <https://mit-license.org/>.

//! The election trait, used to decide which node is the leader and determine if a vote is valid.
use std::{collections::BTreeSet, fmt::Debug, hash::Hash, num::NonZeroU64};
use std::{collections::BTreeSet, fmt::Debug, num::NonZeroU64};

use utils::anytrace::Result;

use super::{network::Topic, node_implementation::NodeType};
use crate::{traits::signature_key::SignatureKey, PeerConfig};

/// A protocol for determining membership in and participating in a committee.
pub trait Membership<TYPES: NodeType>:
Clone + Debug + Eq + PartialEq + Send + Sync + Hash + 'static
{
pub trait Membership<TYPES: NodeType>: Clone + Debug + Send + Sync {
/// The error type returned by methods like `lookup_leader`.
type Error: std::fmt::Display;

Expand Down

0 comments on commit 6f5cb23

Please sign in to comment.