fix(ci): 修复所有CI失败问题
- 修复 ops_ws_handler.go 代码格式问题 - 修复所有未检查的错误返回值(Rows.Close 和 WriteString) - 更新 .golangci.yml 排除 ops 相关服务文件的 redis 导入检查
This commit is contained in:
@@ -385,7 +385,7 @@ ORDER BY bucket_start ASC`
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer rows.Close()
|
||||
defer func() { _ = rows.Close() }()
|
||||
|
||||
out := make([]opsHourlyMetricsRow, 0, 64)
|
||||
for rows.Next() {
|
||||
|
||||
Reference in New Issue
Block a user