perf(gateway): 优化热点路径并补齐高覆盖测试
This commit is contained in:
@@ -44,4 +44,8 @@ const (
|
||||
// SingleAccountRetry 标识当前请求处于单账号 503 退避重试模式。
|
||||
// 在此模式下,Service 层的模型限流预检查将等待限流过期而非直接切换账号。
|
||||
SingleAccountRetry Key = "ctx_single_account_retry"
|
||||
|
||||
// PrefetchedStickyAccountID 标识上游(通常 handler)预取到的 sticky session 账号 ID。
|
||||
// Service 层可复用该值,避免同请求链路重复读取 Redis。
|
||||
PrefetchedStickyAccountID Key = "ctx_prefetched_sticky_account_id"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user