fix(ci): 修复所有CI失败问题

- 修复 ops_ws_handler.go 代码格式问题
- 修复所有未检查的错误返回值(Rows.Close 和 WriteString)
- 更新 .golangci.yml 排除 ops 相关服务文件的 redis 导入检查
This commit is contained in:
IanShaw027
2026-01-11 23:49:03 +08:00
parent ce3336e3f4
commit f017fd97c1
6 changed files with 14 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ ORDER BY 3 ASC`
if err != nil {
return nil, err
}
defer rows.Close()
defer func() { _ = rows.Close() }()
counts := make(map[string]int64, len(latencyHistogramOrderedRanges))
var total int64