Skip to content

Commit c184891

Browse files
fix
1 parent 453fbf7 commit c184891

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

  • integrations/qdrant/src/haystack_integrations/document_stores/qdrant

integrations/qdrant/src/haystack_integrations/document_stores/qdrant/document_store.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,6 @@ def _initialize_client(self) -> None:
269269
client_params = self._prepare_client_params()
270270
# This step adds the api-key and User-Agent to metadata
271271
self._client = qdrant_client.QdrantClient(**client_params)
272-
# For in-memory stores: if the async client was already initialised,
273-
# share its underlying collections dict so both clients see the same data.
274-
if self.location == ":memory:" and self._async_client is not None:
275-
self._client._client.collections = self._async_client._client.collections # type: ignore[attr-defined]
276-
self._client._client.aliases = self._async_client._client.aliases # type: ignore[attr-defined]
277-
return
278272
# Make sure the collection is properly set up
279273
self._set_up_collection(
280274
self.index,
@@ -296,12 +290,6 @@ async def _initialize_async_client(self) -> None:
296290
self._async_client = qdrant_client.AsyncQdrantClient(
297291
**client_params,
298292
)
299-
# For in-memory stores: if the sync client was already initialised,
300-
# share its underlying collections dict so both clients see the same data.
301-
if self.location == ":memory:" and self._client is not None:
302-
self._async_client._client.collections = self._client._client.collections # type: ignore[attr-defined]
303-
self._async_client._client.aliases = self._client._client.aliases # type: ignore[attr-defined]
304-
return
305293
await self._set_up_collection_async(
306294
self.index,
307295
self.embedding_dim,

0 commit comments

Comments
 (0)