Commit ccb81445 authored by yangjianbo's avatar yangjianbo
Browse files

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

parent 1240c78e
...@@ -310,7 +310,9 @@ func (r *dashboardAggregationRepository) dropUsageLogsPartitions(ctx context.Con ...@@ -310,7 +310,9 @@ func (r *dashboardAggregationRepository) dropUsageLogsPartitions(ctx context.Con
if err != nil { if err != nil {
return err return err
} }
defer rows.Close() defer func() {
_ = rows.Close()
}()
cutoffMonth := truncateToMonthUTC(cutoff) cutoffMonth := truncateToMonthUTC(cutoff)
for rows.Next() { for rows.Next() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment