- 25 Dec, 2025 1 commit
-
-
Forest authored
-
- 24 Dec, 2025 3 commits
-
-
Forest authored
-
shaw authored
问题:旧方案使用计数器模式,每次acquire都刷新TTL,导致僵尸数据永不过期 解决方案: - 每个槽位使用独立Redis Key: concurrency:account:{id}:{requestID} - 利用Redis原生TTL,每个槽位独立5分钟过期 - 服务崩溃后僵尸数据自动清理,无需手动干预 - 兼容多实例K8s部署 技术改动: - 新增SCAN脚本统计活跃槽位数量 - 移除冗余的releaseScript,直接使用DEL命令 - Wait队列TTL只在首次创建时设置,避免刷新 -
shaw authored
- 在账户列表 API 返回中添加 current_concurrency 字段 - 合并平台和类型列为 PlatformTypeBadge 组件,节省表格空间 - 新增并发状态列,显示 当前/最大 并发数,支持颜色编码
-
- 20 Dec, 2025 1 commit
-
-
NepetaLemon authored
## 变更内容 ### CI/CD - 添加 GitHub Actions 工作流(test + golangci-lint) - 添加 golangci-lint 配置,启用 errcheck/govet/staticcheck/unused/depguard - 通过 depguard 强制 service 层不能直接导入 repository ### 错误处理修复 - 修复 CSV 写入、SSE 流式输出、随机数生成等未处理的错误 - GenerateRedeemCode() 现在返回 error ### 资源泄露修复 - 统一使用 defer func() { _ = xxx.Close() }() 模式 ### 代码清理 - 移除未使用的常量 - 简化 nil map 检查 - 统一代码格式
-
- 19 Dec, 2025 1 commit
-
-
Forest authored
-
- 18 Dec, 2025 1 commit
-
-
shaw authored
-