examples: add UnimplementedGreeterServer in debugging example (#3079)
This commit is contained in:
Родитель
b4f13811f7
Коммит
d08614fd39
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче