1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-22 10:15:24 +02:00

fixed the problem that grpc stop could not close properly

Co-authored-by: coco <>
This commit is contained in:
yangjianfeng9527
2022-01-19 18:36:46 +08:00
committed by GitHub
parent 9bf178b1d1
commit f050b07432
+1 -1
View File
@@ -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
}