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
Add serve_with_listener fro tonic::transport::server::Router #1096
Comments
You should use Here is an example: let listener = TcpListener::bind(addr).await?;
let incoming = TcpIncoming::from_listener(listener, true);
let server = Server::builder()
.accept_http1(true) // Support http1 for admin service.
.add_service(NodeServer::new(server.clone()))
.add_service(RaftServer::new(server.clone()))
.add_service(RootServer::new(server.clone()))
.add_service(make_admin_service(server.clone()))
.add_optional_service(proxy_server.map(EngulaServer::new))
.serve_with_incoming(incoming); |
|
@MaxKingPor Hi, here already exists a PR: #1093. |
I'm sorry. I didn't see it. It's been closed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature Request
Crates
Motivation
Proposal
Alternatives
The text was updated successfully, but these errors were encountered: