Stop the server
()
| 67 | |
| 68 | //Stop the server |
| 69 | func (s *Server) Stop() error { |
| 70 | zap.L().Info("titan serve stop", zap.String("addr", s.lis.Addr().String())) |
| 71 | return s.lis.Close() |
| 72 | } |
| 73 | |
| 74 | //GracefulStop the server, TODO close clients connections first |
| 75 | func (s *Server) GracefulStop() error { |
no test coverage detected