Skip to content

Commit e5e36e7

Browse files
committed
doc: add time unit for constructor
Signed-off-by: proost <jwalag87@gmail.com>
1 parent b39aeef commit e5e36e7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pymilvus/milvus_client/milvus_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def __init__(
6262
"https://username:password@in01-12a.aws-us-west-2.vectordb.zillizcloud.com:19538
6363
timeout (float, optional): What timeout to use for function calls. Defaults
6464
to None.
65+
Unit: second
6566
"""
6667
self._using = self._create_connection(
6768
uri, user, password, db_name, token, timeout=timeout, **kwargs

pymilvus/orm/connections.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,9 @@ def connect(
356356
Optional. If use tls one-way authentication, need to write the server.pem path.
357357
* *server_name* (``str``) --
358358
Optional. If use tls, need to write the common name.
359+
* *timeout* (``int/float``) --
360+
Optional. The timeout for the connection. Default is 10 seconds.
361+
Unit: second
359362
360363
:raises NotImplementedError: If handler in connection parameters is not GRPC.
361364
:raises ParamError: If pool in connection parameters is not supported.

0 commit comments

Comments
 (0)