"backend/internal/vscode:/vscode.git/clone" did not exist on "b85ab201280523f31089ffa1e8dc68928736f4e0"
Commit 115d06ed authored by QTom's avatar QTom
Browse files

fix: 修复 gofmt 格式问题

parent e135435c
...@@ -1764,4 +1764,3 @@ func sanitizeExtraBaseRPM(extra map[string]any) { ...@@ -1764,4 +1764,3 @@ func sanitizeExtraBaseRPM(extra map[string]any) {
} }
extra["base_rpm"] = v extra["base_rpm"] = v
} }
...@@ -23,9 +23,9 @@ import ( ...@@ -23,9 +23,9 @@ import (
// 通过 rdb.Time() 获取服务端时间,避免多实例时钟不同步。 // 通过 rdb.Time() 获取服务端时间,避免多实例时钟不同步。
// //
// 设计决策: // 设计决策:
// - TxPipeline vs Pipeline:Pipeline 仅合并发送但不保证原子,TxPipeline 使用 MULTI/EXEC 事务保证原子执行。 // - TxPipeline vs Pipeline:Pipeline 仅合并发送但不保证原子,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}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment