mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-01 18:19:08 +00:00
fix: to prevent collisions incase of fallback which should never happen
This commit is contained in:
parent
52a9ad04bd
commit
ef252e821e
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class ConnectorService:
|
|||
self.chunk_retriever = ChucksHybridSearchRetriever(session)
|
||||
self.document_retriever = DocumentHybridSearchRetriever(session)
|
||||
self.user_id = user_id
|
||||
self.source_id_counter = 1
|
||||
self.source_id_counter = 100000 # High starting value to avoid collisions with existing IDs
|
||||
self.counter_lock = asyncio.Lock() # Lock to protect counter in multithreaded environments
|
||||
|
||||
async def initialize_counter(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue