-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I am using these imports to call health check
"buf.build/gen/go/grpc/grpc/connectrpc/go/grpc/health/v1/healthv1connect"
healthv1 "buf.build/gen/go/grpc/grpc/protocolbuffers/go/grpc/health/v1"But if I use this one and mix with grpc imports than I get issue.
panic: proto: file "grpc/health/v1/health.proto" is already registered
previously from: "buf.build/gen/go/grpc/grpc/protocolbuffers/go/grpc/health/v1"
currently from: "google.golang.org/grpc/health/grpc_health_v1"
See https://protobuf.dev/reference/go/faq#namespace-conflictCould 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels