Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use mesh::Sender as mpsc sender everywhere #856

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

jstarks
Copy link
Member

@jstarks jstarks commented Feb 14, 2025

Replace uses of MpscSender and Arc<Sender> with just Sender, since Sender now implements Clone directly.

Replace uses of `MpscSender` and `Arc<Sender>` with just `Sender`, since
`Sender` now implements `Clone` directly.
@jstarks jstarks requested review from a team as code owners February 14, 2025 00:28
@@ -29,8 +29,6 @@ pub use mesh_channel::pipe;
pub use mesh_channel::rpc;
pub use mesh_channel::ChannelError;
pub use mesh_channel::ChannelErrorKind;
pub use mesh_channel::MpscReceiver;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are the implementations of Mpsc{Snder,Receiver} still being used under-the-hood somewhere, or are they redundant after the changes to Sender/Receiver?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They're redundant. I'll remove them soon.

Copy link
Contributor

@daprilik daprilik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love to see it.

@jstarks jstarks merged commit f98aebb into microsoft:main Feb 14, 2025
26 checks passed
@jstarks jstarks deleted the use_sender branch February 14, 2025 00:59
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