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

@@ -416,7 +416,10 @@ func releaseOpsWSIPSlot(clientIP string) {
if !ok {
return
}
counter, ok := v.(*atomic.Int32); if !ok { return }
counter, ok := v.(*atomic.Int32)
if !ok {
return
}
next := counter.Add(-1)
if next <= 0 {
// Best-effort cleanup; safe even if a new slot was acquired concurrently.