From e8a859608fe5a841c3aab0d6d9ddc20ace0bdcbe Mon Sep 17 00:00:00 2001 From: Cai Zhang Date: Wed, 1 Nov 2023 15:47:02 +0800 Subject: [PATCH] Remove unused code for milvus client Signed-off-by: Cai Zhang --- pymilvus/milvus_client/milvus_client.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pymilvus/milvus_client/milvus_client.py b/pymilvus/milvus_client/milvus_client.py index da367f2ab..8ba423132 100644 --- a/pymilvus/milvus_client/milvus_client.py +++ b/pymilvus/milvus_client/milvus_client.py @@ -55,13 +55,9 @@ def __init__( logger.debug("tqdm not found") self.tqdm = lambda x, disable: x - self.uri = uri - self.timeout = timeout - self.conn = None - - self.default_search_params = None - - self._using = self._create_connection(uri, user, password, db_name, token, **kwargs) + self._using = self._create_connection( + uri, user, password, db_name, token, timeout=timeout, **kwargs + ) self.is_self_hosted = bool( utility.get_server_type(using=self._using) == "milvus", )