Skip to content

Commit

Permalink
fix: [2.5] await conn.describe_collection in async client's query (#2502
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 37736a2 commit 9ab2399
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 9ab2399

Please sign in to comment.