Skip to content

Commit

Permalink
Fix 6034 (milvus-io#596)
Browse files Browse the repository at this point in the history
Signed-off-by: dragondriver <[email protected]>
  • Loading branch information
longjiquan authored Jul 5, 2021
1 parent 2485c35 commit 5434891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymilvus/client/stub.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ def __init__(self, host=None, port=None, handler="GRPC", pool="SingletonThread",
self._hooks = collections.defaultdict()

self._deploy_mode = DeployMode.Distributed
self._wait_for_healthy()

@check_connect
def _wait_for_healthy(self, timeout=30, retry=10):
Expand Down Expand Up @@ -159,7 +158,8 @@ def __del__(self):
self._pool = None

def _connection(self):
return self._pool.fetch()
if self._pool:
return self._pool.fetch()

def _update_connection_pool(self):
self._pool = None
Expand Down

0 comments on commit 5434891

Please sign in to comment.