Skip to content

Commit

Permalink
revert channel changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ealmloff committed Mar 28, 2024
1 parent eca4ad0 commit e3ad85b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions std/src/utils/channel/use_channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@ pub struct UseChannel<MessageType: Clone + 'static> {
inactive_receiver: Signal<InactiveReceiver<MessageType>>,
}

impl<T: Clone> UseChannel<T> {
pub(crate) fn new(id: Uuid, sender: Sender<T>, inactive_receiver: InactiveReceiver<T>) -> Self {
Self {
id,
sender,
inactive_receiver,
}
}
}

impl<T: Clone> PartialEq for UseChannel<T> {
fn eq(&self, other: &Self) -> bool {
self.id == other.id
Expand Down Expand Up @@ -49,7 +39,6 @@ pub fn use_channel<MessageType: Clone + 'static>(size: usize) -> UseChannel<Mess
use_hook(|| {
let id = Uuid::new_v4();
let (sender, receiver) = broadcast::<MessageType>(size);

UseChannel {
id,
sender: Signal::new(sender),
Expand Down

0 comments on commit e3ad85b

Please sign in to comment.