"git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "a55cfebd094c6ac6291c24796b342947d9ba3b27"
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
if err != nil {
return err
}
defer rows.Close()
defer func() {
_ = rows.Close()
}()
cutoffMonth := truncateToMonthUTC(cutoff)
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