forked from mtusi2026/mtusi2026lab3
На 5
This commit is contained in:
@@ -76,6 +76,7 @@ func (s *server) Stop(ctx context.Context) error {
|
||||
s.ready.Store(false)
|
||||
if err := s.server.Shutdown(ctx); err != nil {
|
||||
slog.Error("rest server shutdown failed", "error", err)
|
||||
_ = s.server.Close()
|
||||
return err
|
||||
}
|
||||
slog.Info("rest server shutdown successfully")
|
||||
|
||||
Reference in New Issue
Block a user