mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
prune_expired only shrank edit_message maps, so the cache kept one ChatData per chat forever (a leak proportional to chat count). Chats without live edit records are now dropped from the cache and their per-chat lock (DB row persists; get() reloads). Lock order kept safe: prune never holds the cache lock while taking the per-chat locks.