Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
115d06ed
"backend/internal/vscode:/vscode.git/clone" did not exist on "b85ab201280523f31089ffa1e8dc68928736f4e0"
Commit
115d06ed
authored
Feb 28, 2026
by
QTom
Browse files
fix: 修复 gofmt 格式问题
parent
e135435c
Changes
2
Hide whitespace changes
Inline
Side-by-side
backend/internal/handler/admin/account_handler.go
View file @
115d06ed
...
@@ -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
}
}
backend/internal/repository/rpm_cache.go
View file @
115d06ed
...
@@ -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}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment