From ccf2e718de280922de4d414145995553d7ce59e9 Mon Sep 17 00:00:00 2001 From: francoposa Date: Tue, 17 Dec 2024 13:06:23 -0800 Subject: [PATCH] fix use of unimplemented server --- httpgrpc/httpgrpc_grpc.pb.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/httpgrpc/httpgrpc_grpc.pb.go b/httpgrpc/httpgrpc_grpc.pb.go index f2fad8113..0c3e2e4d3 100644 --- a/httpgrpc/httpgrpc_grpc.pb.go +++ b/httpgrpc/httpgrpc_grpc.pb.go @@ -48,21 +48,19 @@ func (c *hTTPClient) Handle(ctx context.Context, in *HTTPRequest, opts ...grpc.C } // HTTPServer is the server API for HTTP service. -// All implementations must embed UnimplementedHTTPServer +// All implementations should embed UnimplementedHTTPServer // for forward compatibility type HTTPServer interface { Handle(context.Context, *HTTPRequest) (*HTTPResponse, error) - mustEmbedUnimplementedHTTPServer() } -// UnimplementedHTTPServer must be embedded to have forward compatible implementations. +// UnimplementedHTTPServer should be embedded to have forward compatible implementations. type UnimplementedHTTPServer struct { } func (UnimplementedHTTPServer) Handle(context.Context, *HTTPRequest) (*HTTPResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Handle not implemented") } -func (UnimplementedHTTPServer) mustEmbedUnimplementedHTTPServer() {} // UnsafeHTTPServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to HTTPServer will