Refactor subscription table logic and enhance Lua logging and debounce functionality

This commit is contained in:
Breadway 2026-05-11 16:57:22 +08:00
parent 05123a5989
commit edb2ba338a
3 changed files with 145 additions and 2 deletions

View file

@ -35,7 +35,6 @@ impl SubscriptionTable {
// swap_remove moves the last element into `idx`. We need to update by_id
// for that element. But first, remove its stale entry (it was at the last
// position before the swap); then re-insert it at the new position.
let _last_idx = self.entries.len() - 1;
self.entries.swap_remove(idx);
if idx < self.entries.len() {