ShutdownGRPCServer shuts down the GRPC server. Note: Since the GRPC server runs over HTTP handler transport, GracefulStop() doesn't work. We use Stop() instead.
()
| 662 | // Note: Since the GRPC server runs over HTTP handler transport, |
| 663 | // GracefulStop() doesn't work. We use Stop() instead. |
| 664 | func (s *Server) ShutdownGRPCServer() { |
| 665 | s.grpcMutex.Lock() |
| 666 | defer s.grpcMutex.Unlock() |
| 667 | |
| 668 | if s.grpcServer != nil { |
| 669 | s.grpcServer.Stop() |
| 670 | s.grpcServer = nil |
| 671 | } |
| 672 | } |