Bob Huang 3 лет назад
Родитель
Сommit
afb728ed9f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      backend_refactor/pool/thread_pool.py

+ 1 - 1
backend_refactor/pool/thread_pool.py

@@ -19,7 +19,7 @@ def init_workers(count=2):
 		threading.Thread(target=worker).start()
 
 class Pool:
-	def submit(job, callback):
+	def submit(self, job, callback):
 		q.put((job, callback))
 
 pool = Pool()