fix: 修复 ESLint 错误和代码格式问题

- 修复 cacheMonitor.js 中未使用的变量 'name'
- 移除未使用的变量以通过 ESLint 检查
- 确保 npm run dev 能正常运行

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
shaw
2025-08-17 16:54:08 +08:00
parent 3bcdb511fe
commit 3d1cd21bc4
4 changed files with 12 additions and 12 deletions

View File

@@ -192,8 +192,8 @@ class RedisClient {
cacheCreateTokens = 0,
cacheReadTokens = 0,
model = 'unknown',
ephemeral5mTokens = 0, // 新增5分钟缓存 tokens
ephemeral1hTokens = 0 // 新增1小时缓存 tokens
ephemeral5mTokens = 0, // 新增5分钟缓存 tokens
ephemeral1hTokens = 0 // 新增1小时缓存 tokens
) {
const key = `usage:${keyId}`
const now = new Date()