Merge pull request #4183 from dokku/fix-greeter

Embed pb.UnimplementedGreeterServer to avoid linting issues
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2020-11-13 11:50:29 -05:00
commit eec0e5df01
1 file changed
+3 -1
+3 -1
View File
@@ -35,7 +35,9 @@ const (
) )
// server is used to implement helloworld.GreeterServer. // server is used to implement helloworld.GreeterServer.
type server struct{} type server struct{
pb.UnimplementedGreeterServer
}
// SayHello implements helloworld.GreeterServer // SayHello implements helloworld.GreeterServer
func (s *server) SayHello(ctx context.Context, in *pb.HelloRequest) (*pb.HelloReply, error) { func (s *server) SayHello(ctx context.Context, in *pb.HelloRequest) (*pb.HelloReply, error) {