From 07f4bdadc8920b0538c93d77fd5028d08b7b3474 Mon Sep 17 00:00:00 2001 From: "cai.zhang" Date: Wed, 1 Nov 2023 16:12:06 +0800 Subject: [PATCH] Remove unused code for milvus client (#1770) 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 b377e504c..849fbb866 100644 --- a/pymilvus/milvus_client/milvus_client.py +++ b/pymilvus/milvus_client/milvus_client.py @@ -56,13 +56,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", )