mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-24 23:41:10 +02:00
Merge pull request #19 from okapteinis/claude/deadlock-fix-01WNkTGGrYURxe9JATA3gX6y
Fix deadlock by using RLock instead of Lock
This commit is contained in:
commit
660387b54e
1 changed files with 1 additions and 1 deletions
|
|
@ -184,7 +184,7 @@ class Config:
|
||||||
_chunker_instance = None
|
_chunker_instance = None
|
||||||
_code_chunker_instance = None
|
_code_chunker_instance = None
|
||||||
_reranker_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
|
@classmethod
|
||||||
def _initialize_embedding_model(cls):
|
def _initialize_embedding_model(cls):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue