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

Upgrade gRPC example deps #189

Merged
merged 2 commits into from
Oct 4, 2024
Merged

Upgrade gRPC example deps #189

merged 2 commits into from
Oct 4, 2024

Conversation

mcches
Copy link
Contributor

@mcches mcches commented Oct 4, 2024

No description provided.

@mcches mcches requested a review from LucioFranco October 4, 2024 14:27
use hyper::Uri;
use hyper_util::client::legacy::connect::Connected;
use hyper_util::rt::TokioIo;
mod incoming {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could avoid this by implementing in turmoil, but we'd have to take a tonic dependency and managing version upgrades will be difficult.

Copy link
Member

Choose a reason for hiding this comment

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

I think this is fine for something that users can copy into their own code pretty easily and so we dont need to pin turmoil to tonic.


type Fut = Pin<Box<dyn Future<Output = Result<TokioIo<TcpStream>, std::io::Error>> + Send>>;

pub fn connector(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is pretty clean now.

@mcches mcches merged commit cfc6316 into main Oct 4, 2024
3 checks passed
@mcches mcches deleted the grpc branch October 4, 2024 15:15
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