fixed the problem that grpc stop could not close properly

Co-authored-by: coco <>
pull/1779/head
yangjianfeng9527 3 years ago committed by GitHub
parent 9bf178b1d1
commit f050b07432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      transport/grpc/server.go

@ -191,8 +191,8 @@ func (s *Server) Start(ctx context.Context) error {
// Stop stop the gRPC server.
func (s *Server) Stop(ctx context.Context) error {
s.GracefulStop()
s.health.Shutdown()
s.GracefulStop()
s.log.Info("[gRPC] server stopping")
return nil
}

Loading…
Cancel
Save