Fix monitoring TG CI lint issues
All checks were successful
CI / go (push) Successful in 28s
CI / python (push) Successful in 1s
Build and Deploy / build-and-deploy (push) Successful in 26s

This commit is contained in:
Grendgi
2026-06-09 11:33:20 +03:00
parent c4ad6c6c84
commit eb12190729
2 changed files with 6 additions and 5 deletions

View File

@@ -24,7 +24,4 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - run: python3 -m compileall src alembic
with:
python-version: "3.11"
- run: python -m compileall src alembic

View File

@@ -1028,7 +1028,11 @@ func (a *app) serveMinioMedia(w http.ResponseWriter, r *http.Request, key string
slog.Warn("minio_get_media_failed", "key", key, "error", err) slog.Warn("minio_get_media_failed", "key", key, "error", err)
return false return false
} }
defer obj.Close() defer func() {
if err := obj.Close(); err != nil {
slog.Warn("minio_media_close_failed", "key", key, "error", err)
}
}()
info, err := obj.Stat() info, err := obj.Stat()
if err != nil { if err != nil {
return false return false