fix 取消Chain全局单例

This commit is contained in:
jxxghp
2023-08-01 20:25:34 +08:00
parent 88332aac50
commit 0914dace42
3 changed files with 5 additions and 11 deletions

View File

@ -1,6 +1,5 @@
import json
import re
import gc
from datetime import datetime
from typing import Dict, List, Optional, Union, Tuple
@ -416,9 +415,6 @@ class SubscribeChain(ChainBase):
self.__match(torrents_cache)
# 保存缓存到本地
self.save_cache(torrents_cache, self._cache_file)
# 主动回收内存
del torrents_cache
gc.collect()
def __match(self, torrents_cache: Dict[str, List[Context]]):
"""