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

Update to axum 0.7, tonic 0.12, hyper 1.4, tower 0.5 #9

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

avsaase
Copy link

@avsaase avsaase commented Sep 16, 2024

Closes #8

Comment on lines 40 to 56
/// ```ignore
/// use tower::{builder::ServiceBuilder, make::make_service::shared::Shared};
/// use axum::Server;
///
/// use axum_tonic::RestGrpcService;
/// use tokio::net::TcpListener;
/// use tower::ServiceBuilder;
///
/// let svc: RestGrpcService = my_service();
///
///
/// let svc_with_layers = ServiceBuilder::new()
/// .buffer(5)
/// .layer(my_layer1())
/// .layer(my_layer2())
/// .service(svc);
///
/// Server::bind(&"127.0.0.1:3000".parse().unwrap())
/// .serve(Shared::new(svc_with_layers))
///
/// axum::serve(TcpListener::bind(&"127.0.0.1:3000"), svc_with_layers)
/// .await
/// .unwrap();
/// ```
Copy link
Author

Choose a reason for hiding this comment

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

This example doesn't make sense to me as it doesn't use the function that it is supposed to document. I updated it anyway but I'm happy to make changes if needed.

@avsaase avsaase marked this pull request as ready for review September 17, 2024 07:18
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.

Update for axum 0.7 and hyper 1
1 participant