Use original method names for gRPC paths

Stop converting method names to snake_case when generating the gRPC
service paths to maintain compatibility with protobuf definitions.
This commit is contained in:
2026-05-17 10:44:07 -07:00
parent 89455190b1
commit 33f3e58f74
2 changed files with 9 additions and 9 deletions
+1 -2
View File
@@ -463,7 +463,6 @@ impl Service<http::Request<BoxBody>> for InteropServiceServer {
let payload = bytes_vec.slice(5..);
let mut routed = false;
if path == "/interop.InteropService/UnaryCall" {
let request_msg = match OwnedUnaryRequest::decode(payload) {
Ok(msg) => msg,
@@ -495,7 +494,7 @@ impl Service<http::Request<BoxBody>> for InteropServiceServer {
routed = true;
return Ok(http::Response::builder().status(200).header("content-type", "application/grpc").body(res_body).unwrap());
}
if path == "/interop.InteropService/streaming_call" {
if path == "/interop.InteropService/StreamingCall" {
let res_body = BoxBody::new(StatusBody::new(Some(Bytes::from_static(&[0, 0, 0, 0, 0])), 0));
return Ok(http::Response::builder().status(200).body(res_body).unwrap());
}