Skip to content

Commit

Permalink
fix: await conn.describe_collection in async client's query (#2500)
Browse files Browse the repository at this point in the history
Signed-off-by: Ruichen Bao <[email protected]>
  • Loading branch information
brcarry authored Dec 23, 2024
1 parent b5a9626 commit 1a46af1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pymilvus/milvus_client/async_milvus_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,9 @@ async def query(

if ids:
try:
schema_dict = conn.describe_collection(collection_name, timeout=timeout, **kwargs)
schema_dict = await conn.describe_collection(
collection_name, timeout=timeout, **kwargs
)
except Exception as ex:
logger.error("Failed to describe collection: %s", collection_name)
raise ex from ex
Expand Down

0 comments on commit 1a46af1

Please sign in to comment.