fix: 修复 gofmt 格式问题

This commit is contained in:
QTom
2026-02-28 14:28:16 +08:00
parent e135435ce2
commit 115d06edf0
2 changed files with 3 additions and 4 deletions

View File

@@ -1764,4 +1764,3 @@ func sanitizeExtraBaseRPM(extra map[string]any) {
} }
extra["base_rpm"] = v extra["base_rpm"] = v
} }

View File

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