From d08614fd392b47bba85933a0023caad2c4cece95 Mon Sep 17 00:00:00 2001 From: Quang Le Hong Date: Sun, 6 Oct 2019 05:38:30 +0700 Subject: [PATCH] examples: add UnimplementedGreeterServer in debugging example (#3079) --- examples/features/debugging/server/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/features/debugging/server/main.go b/examples/features/debugging/server/main.go index fcf6714e4fb..f5cc91bf73c 100644 --- a/examples/features/debugging/server/main.go +++ b/examples/features/debugging/server/main.go @@ -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. -type slowServer struct{} +type slowServer struct { + pb.UnimplementedGreeterServer +} // SayHello implements helloworld.GreeterServer func (s *slowServer) SayHello(ctx context.Context, in *pb.HelloRequest) (*pb.HelloReply, error) {