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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user