You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But if I use this one and mix with grpc imports than I get issue.
This is a known issue with Protobuf Go -- you can only use a single package that represents the same generated proto sources. You could disable this error via the GOLANG_PROTOBUF_REGISTRATION_CONFLICT=warn environment variable (as mentioned in the link at the end of the error message).
If you are using both gRPC and Connect in the same binary, you could just use the gRPC packages for the health checks. If you want to use the same transport as for other Connect stubs to the same backend service, then I'd recommend not using code-gen for now.
As far as adding API to this repo to provide an RPC client, that is certainly the right long-term direction. So I'll leave this issue open and only close it when we've added that. But for the short-term, instead of waiting on that change and a release, I'd stick with the suggestion in the above paragraph.
I am using these imports to call health check
But if I use this one and mix with grpc imports than I get issue.
Could you show how to call this server code?
[EDIT]
Generated code and replaced to original package to use it, can we do it same in this repo?
https://github.com/worldline-go/grpc/blob/main/health/v1/healthv1connect/health.connect.go#L27
The text was updated successfully, but these errors were encountered: