Browse Source

ugly but useful(?)

lyc8503 4 years ago
parent
commit
3db128b560
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend_refactor/pool/thread_pool.py

+ 1 - 1
backend_refactor/pool/thread_pool.py

@@ -20,7 +20,7 @@ def worker():
             raise e
 
 
-@functools.cache
+@functools.lru_cache()
 def init_workers(count=2):
     logging.info("Initializing workers...")
     for _ in range(count):