refactor: 标准化与提高缓存策略

This commit is contained in:
手瓜一十雪
2025-01-13 20:35:52 +08:00
parent 8f93f63d76
commit 38f8c93866
2 changed files with 45 additions and 8 deletions

View File

@@ -78,7 +78,7 @@ class MessageUniqueWrapper {
private readonly msgDataMap: LimitedHashTable<string, number>;
private readonly msgIdMap: LimitedHashTable<string, number>;
constructor(maxMap: number = 1000) {
constructor(maxMap: number = 5000) {
this.msgIdMap = new LimitedHashTable<string, number>(maxMap);
this.msgDataMap = new LimitedHashTable<string, number>(maxMap);
}