mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-29 20:45:51 +08:00
优化代码结构 删除无用队列结果集参数
This commit is contained in:
@@ -59,12 +59,10 @@ class Collect(object):
|
||||
self.get_mod()
|
||||
self.import_func()
|
||||
|
||||
if not rx_queue:
|
||||
rx_queue = queue.Queue(maxsize=len(self.collect_func)) # 结果集队列
|
||||
threads = []
|
||||
# 创建多个子域收集线程
|
||||
for collect_func in self.collect_func:
|
||||
thread = threading.Thread(target=collect_func, args=(self.domain, rx_queue), daemon=True)
|
||||
thread = threading.Thread(target=collect_func, args=(self.domain,), daemon=True)
|
||||
threads.append(thread)
|
||||
# 启动所有线程
|
||||
for thread in threads:
|
||||
|
||||
Reference in New Issue
Block a user