mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 12:34:22 +08:00
2937043e40
realtime_dual_write_sync 之前每次写命令都新建 sqlx 连接池并跑 migration,高频写入下导致 "pool timed out while waiting for an open connection"。改为在 AppState 缓存启动时建立的本地 SQLite 连接并复用。同时把 execute_rule 里的冷却检查改到事务连接内 执行,避免事务开启时再额外借一条池连接。 Co-Authored-By: Claude <noreply@anthropic.com>