fix(仪表盘): 修复rows.Close错误检查

This commit is contained in:
yangjianbo
2026-01-11 18:39:29 +08:00
parent 1240c78ef6
commit ccb8144557

View File

@@ -310,7 +310,9 @@ func (r *dashboardAggregationRepository) dropUsageLogsPartitions(ctx context.Con
if err != nil {
return err
}
defer rows.Close()
defer func() {
_ = rows.Close()
}()
cutoffMonth := truncateToMonthUTC(cutoff)
for rows.Next() {