mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-24 09:41:17 +00:00
style: format all files with prettier
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1473,8 +1473,12 @@ class RedisClient {
|
||||
// 多抽样检查:抽取最多 3 个 keyId 检查是否有 alltime 数据
|
||||
const sampleIndices = new Set()
|
||||
sampleIndices.add(0) // 始终包含第一个
|
||||
if (keyIds.length > 1) sampleIndices.add(keyIds.length - 1) // 包含最后一个
|
||||
if (keyIds.length > 2) sampleIndices.add(Math.floor(keyIds.length / 2)) // 包含中间一个
|
||||
if (keyIds.length > 1) {
|
||||
sampleIndices.add(keyIds.length - 1)
|
||||
} // 包含最后一个
|
||||
if (keyIds.length > 2) {
|
||||
sampleIndices.add(Math.floor(keyIds.length / 2))
|
||||
} // 包含中间一个
|
||||
|
||||
let hasAnyAlltimeData = false
|
||||
for (const idx of sampleIndices) {
|
||||
|
||||
Reference in New Issue
Block a user