mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-07-30 22:23:51 +00:00
MaybeCompact relied on RAM count which resets to 0 on restart (LoadFromDB is a no-op). Messages accumulated in DB but never triggered compaction. Now falls back to CountByKey DB query when RAM count is below threshold.