mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 00:53:33 +00:00
Fix Prettier formatting issues
- Remove trailing whitespace and fix indentation in src/app.js - Format whitespace in src/middleware/auth.js - Fix formatting and add missing newline in src/middleware/browserFallback.js 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -109,7 +109,7 @@ class Application {
|
||||
} else {
|
||||
this.app.use(corsMiddleware)
|
||||
}
|
||||
|
||||
|
||||
// 🆕 兜底中间件:处理Chrome插件兼容性(必须在认证之前)
|
||||
this.app.use(browserFallbackMiddleware)
|
||||
|
||||
@@ -541,7 +541,7 @@ class Application {
|
||||
logger.info(
|
||||
`🔄 Cleanup tasks scheduled every ${config.system.cleanupInterval / 1000 / 60} minutes`
|
||||
)
|
||||
|
||||
|
||||
// 🚨 启动限流状态自动清理服务
|
||||
// 每5分钟检查一次过期的限流状态,确保账号能及时恢复调度
|
||||
const rateLimitCleanupService = require('./services/rateLimitCleanupService')
|
||||
@@ -567,7 +567,7 @@ class Application {
|
||||
} catch (error) {
|
||||
logger.error('❌ Error cleaning up pricing service:', error)
|
||||
}
|
||||
|
||||
|
||||
// 停止限流清理服务
|
||||
try {
|
||||
const rateLimitCleanupService = require('./services/rateLimitCleanupService')
|
||||
|
||||
Reference in New Issue
Block a user