feat: 修改日志初始化顺序

This commit is contained in:
Rock Chin
2023-03-16 20:55:57 +08:00
parent d1549b3df0
commit cf678aa345
2 changed files with 17 additions and 14 deletions

View File

@@ -52,7 +52,7 @@ class ThreadCtl:
self.submit_sys_task(self.__admin_pool__.__thread_monitor__)
self.submit_sys_task(self.__user_pool__.__thread_monitor__)
def __submit__(self, pool:Pool, fn, /, *args, **kwargs ):
def __submit__(self, pool: Pool, fn, /, *args, **kwargs ):
t = pool.ctl.submit(fn, *args, **kwargs)
pool.task_list_lock.acquire()
pool.task_list.append(t)