Skip to content

Commit 115d06e

Browse files
author
QTom
committed
fix: 修复 gofmt 格式问题
1 parent e135435 commit 115d06e

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

backend/internal/handler/admin/account_handler.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1764,4 +1764,3 @@ func sanitizeExtraBaseRPM(extra map[string]any) {
17641764
}
17651765
extra["base_rpm"] = v
17661766
}
1767-

backend/internal/repository/rpm_cache.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import (
2323
// 通过 rdb.Time() 获取服务端时间,避免多实例时钟不同步。
2424
//
2525
// 设计决策:
26-
// - TxPipeline vs Pipeline:Pipeline 仅合并发送但不保证原子,TxPipeline 使用 MULTI/EXEC 事务保证原子执行。
27-
// - rdb.Time() 单独调用:Pipeline/TxPipeline 中无法引用前一命令的结果,因此 TIME 必须单独调用(2 RTT)。
28-
// Lua 脚本可以做到 1 RTT,但在 Redis Cluster 中动态拼接 key 存在 CROSSSLOT 风险,选择安全性优先。
26+
// - TxPipeline vs Pipeline:Pipeline 仅合并发送但不保证原子,TxPipeline 使用 MULTI/EXEC 事务保证原子执行。
27+
// - rdb.Time() 单独调用:Pipeline/TxPipeline 中无法引用前一命令的结果,因此 TIME 必须单独调用(2 RTT)。
28+
// Lua 脚本可以做到 1 RTT,但在 Redis Cluster 中动态拼接 key 存在 CROSSSLOT 风险,选择安全性优先。
2929
const (
3030
// RPM 计数器键前缀
3131
// 格式: rpm:{accountID}:{minuteTimestamp}

0 commit comments

Comments
 (0)