Skip to content

Commit

Permalink
examples: add UnimplementedGreeterServer in debugging example (#3079)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamquang95 authored and dfawley committed Oct 5, 2019
1 parent b4f1381 commit d08614f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/features/debugging/server/main.go
Expand Up @@ -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) {
Expand Down

0 comments on commit d08614f

Please sign in to comment.