Handle avatar backfill row close errors

This commit is contained in:
2026-06-20 18:29:11 +02:00
committed by Milas Holsting
parent c85977c728
commit b73f96fa0b

View File

@@ -5,6 +5,7 @@ import (
"database/sql" "database/sql"
"fmt" "fmt"
"mal/internal" "mal/internal"
"mal/pkg/errlog"
) )
func init() { func init() {
@@ -15,7 +16,7 @@ func init() {
if err != nil { if err != nil {
return fmt.Errorf("query users missing avatar_url: %w", err) return fmt.Errorf("query users missing avatar_url: %w", err)
} }
defer func() { _ = rows.Close() }() defer errlog.Close(rows, "failed to close avatar backfill rows")
type userRow struct { type userRow struct {
id string id string