Sfoglia il codice sorgente

ugly but useful(?)

lyc8503 3 anni fa
parent
commit
3db128b560
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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):