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 tokio-stream wrapper types #2

Merged
merged 1 commit into from Jan 5, 2021
Merged

Use tokio-stream wrapper types #2

merged 1 commit into from Jan 5, 2021

Conversation

paolobarbolini
Copy link

Uses the new types from tokio-rs/tokio#3343

@aknuds1

Copy link
Owner

@aknuds1 aknuds1 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Comment on lines +104 to +106
use tokio::sync::{mpsc, oneshot};
#[cfg(feature = "websocket")]
use tokio_stream::wrappers::UnboundedReceiverStream;
Copy link
Owner

Choose a reason for hiding this comment

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

Does Rust support making both these uses dependent on the websocket feature, so you don't have to declare it for each?

Copy link
Author

Choose a reason for hiding this comment

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

I don't think so

Copy link
Owner

Choose a reason for hiding this comment

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

OK thanks 👍

@aknuds1 aknuds1 added the chore label Jan 5, 2021
@aknuds1 aknuds1 merged commit 7ff37e3 into aknuds1:chore/upgrade-tokio Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants