From 2ddbdba7924eff30a8fdae4238348fb2ccb69419 Mon Sep 17 00:00:00 2001 From: Bruno Faria Date: Tue, 14 May 2024 23:23:05 -0400 Subject: [PATCH 1/2] Added grpc as a valid protocol for uri Signed-off-by: Bruno Faria Added grpc protocol to connection uri validation. Not having it was preventing grpc connections with the following error: Signed-off-by: Bruno Faria Signed-off-by: Bruno Faria --- pymilvus/orm/connections.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pymilvus/orm/connections.py b/pymilvus/orm/connections.py index 761ae2abc..a7f392891 100644 --- a/pymilvus/orm/connections.py +++ b/pymilvus/orm/connections.py @@ -363,6 +363,7 @@ def connect( "http", "https", "tcp", + "grpc" ]: # start and connect milvuslite if kwargs["uri"].endswith("/"): From 7f5208c733d8505e4dc56b47c11c11188d79675b Mon Sep 17 00:00:00 2001 From: Bruno Faria Date: Thu, 16 May 2024 09:55:21 -0400 Subject: [PATCH 2/2] Applied ake format Signed-off-by: Bruno Faria Signed-off-by: Bruno Faria --- pymilvus/orm/connections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymilvus/orm/connections.py b/pymilvus/orm/connections.py index a7f392891..490d7768c 100644 --- a/pymilvus/orm/connections.py +++ b/pymilvus/orm/connections.py @@ -363,7 +363,7 @@ def connect( "http", "https", "tcp", - "grpc" + "grpc", ]: # start and connect milvuslite if kwargs["uri"].endswith("/"):