Closed mxpv closed 4 years ago
@mxpv I test this part with ttrpc-go generation code. But I am not sure whether the generation command is right. Did you test this part with containerd?
@teawater yes, I'm testing rust client/server against containerd. After I replaced endpoints manually, everything worked fine.
@mxpv Thanks for your report! I was confused by the package name and protocol. Do you want to post PR for this issue?
@mxpv Could you help me test the PR?
Do you want to post PR for this issue?
@teawater sorry, was going to have a look next week.
Could you help me test the PR?
Yep, the fix from fix_package_name
branch works like a charm :)
It looks like that the rust version of ttrpc code generator doesn't take into account proto package names when generating the code. This leads to all endpoints are being prefixed (example) with
/grpc.ServiceName
instead of/PackageName.ServiceName
. This makes it incompatible with the existing Go based generator, which adds package names (for instance events: events.proto, events.pb.go)How to reproduce: I took this file: https://github.com/containerd/containerd/blob/master/runtime/v2/task/shim.proto and ran with:
The output of
shim_ttrpc.rs
looks like this: