Skip to content

Conversation

@rklaehn
Copy link
Collaborator

@rklaehn rklaehn commented Oct 9, 2025

Add a from conversion from a crate::channel::mpsc::Sender<S::Message> to a client

This makes it simpler to use a mpsc channel from this crate as an actor channel.

If it wasn't for the PhantomData I would remove the ClientInner and make Client a public enum.

I noticed the need for this while dogfooding using irpc channels as actor channels in iroh-dht-experiment.

… to a client

This makes it simpler to use a mpsc channel from this crate as an actor channel.
@rklaehn rklaehn marked this pull request as ready for review October 9, 2025 14:32
@rklaehn rklaehn changed the title Add a from conversion from a crate::channel::mpsc::Sender<S::Message>… feat: Add a from conversion from a crate::channel::mpsc::Sender<S::Message>… Oct 9, 2025
@rklaehn rklaehn requested a review from Frando October 9, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants