adminhandler/ratelimit.go 按 IP 记录投稿时间,过期的 IP 不会从 map 中删除,来过的 IP 越多内存越大。
adminhandler/ratelimit.go
来源:只读审查 main@36f9c95(2026-10-23)。
已由 #54 合并(main c163f2b7)。合并前已把最新 main 合入分支,并在本地按 .github/workflows/ci.yml 跑通:Go 1.27.3 的 gofmt/vet/build/test(PostgreSQL 16,后台 DB 测试 0 跳过)、Python ruff/pytest(52 通过)、迁移 up/down、两份 compose config;#46 另做了 SIGTERM 优雅退出验证(退出码 0)。生产尚未部署。
Written by Devin
No dependencies set.
The note is not visible to the blocked user.
现状
adminhandler/ratelimit.go按 IP 记录投稿时间,过期的 IP 不会从 map 中删除,来过的 IP 越多内存越大。要求
验收
来源:只读审查 main@36f9c95(2026-10-23)。
已由 #54 合并(main c163f2b7)。合并前已把最新 main 合入分支,并在本地按 .github/workflows/ci.yml 跑通:Go 1.27.3 的 gofmt/vet/build/test(PostgreSQL 16,后台 DB 测试 0 跳过)、Python ruff/pytest(52 通过)、迁移 up/down、两份 compose config;#46 另做了 SIGTERM 优雅退出验证(退出码 0)。生产尚未部署。
Written by Devin