Merge pull request #19 from okapteinis/claude/deadlock-fix-01WNkTGGrYURxe9JATA3gX6y

Fix deadlock by using RLock instead of Lock
This commit is contained in:
Ojārs Kapteinis 2025-11-19 01:44:53 +02:00 committed by GitHub
commit 660387b54e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -184,7 +184,7 @@ class Config:
_chunker_instance = None
_code_chunker_instance = None
_reranker_instance = None
_init_lock = threading.Lock() # Thread-safety lock for lazy initialization
_init_lock = threading.RLock() # Reentrant lock for nested initialization calls
@classmethod
def _initialize_embedding_model(cls):