Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
ccb81445
Commit
ccb81445
authored
Jan 11, 2026
by
yangjianbo
Browse files
fix(仪表盘): 修复rows.Close错误检查
parent
1240c78e
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/repository/dashboard_aggregation_repo.go
View file @
ccb81445
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment