examples: add UnimplementedGreeterServer in debugging example (#3079)

This commit is contained in:
Quang Le Hong 2019-10-06 05:38:30 +07:00 committed by Doug Fawley
parent b4f13811f7
commit d08614fd39
1 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,9 @@ func (s *server) SayHello(ctx context.Context, in *pb.HelloRequest) (*pb.HelloRe
} }
// slow server is used to simulate a server that has a variable delay in its response. // slow server is used to simulate a server that has a variable delay in its response.
type slowServer struct{} type slowServer struct {
pb.UnimplementedGreeterServer
}
// SayHello implements helloworld.GreeterServer // SayHello implements helloworld.GreeterServer
func (s *slowServer) SayHello(ctx context.Context, in *pb.HelloRequest) (*pb.HelloReply, error) { func (s *slowServer) SayHello(ctx context.Context, in *pb.HelloRequest) (*pb.HelloReply, error) {