This commit is contained in:
Grbisba
2026-11-07 10:41:21 +03:00
parent 4c066ff191
commit 1e0d18e25b
306 changed files with 14036 additions and 627 deletions
@@ -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")