mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 01:10:23 +08:00
- 管理端和用户端路由中的同步数据库操作提取为独立函数,通过 run_in_threadpool 在线程池中执行,避免阻塞事件循环(涉及 api_keys、payments、users、wallets、 provider_oauth、system、user_me、wallet 等模块) - 抽取 authenticate_user_from_bearer_token 统一 token 验证逻辑,支持 ManagementToken 和 JWT 两种认证方式,消除多处重复代码 - key_command_service 的 CRUD 操作改为线程池执行 - maintenance_scheduler 定时任务中的数据库操作改用 asyncio.to_thread - Dockerfile 中 aether-hub 增加 --worker-idle-timeout 0 防止空闲断连 - 新增 test_api_auth_conventions 和 test_auth_utils 单元测试