mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
small refactor
This commit is contained in:
parent
24b2e73e5a
commit
560c4310ae
@ -405,7 +405,7 @@ class ServiceHandler(milvus_pb2_grpc.MilvusServiceServicer):
|
||||
string_reply=_reply
|
||||
)
|
||||
|
||||
def _show_tables(self):
|
||||
def _show_tables(self, metadata=None):
|
||||
return self.connection(metadata=metadata).show_tables()
|
||||
|
||||
@mark_grpc_method
|
||||
@ -414,7 +414,7 @@ class ServiceHandler(milvus_pb2_grpc.MilvusServiceServicer):
|
||||
metadata = {
|
||||
'resp_class': milvus_pb2.TableName
|
||||
}
|
||||
_status, _results = self._show_tables()
|
||||
_status, _results = self._show_tables(metadata=metadata)
|
||||
|
||||
return milvus_pb2.TableNameList(
|
||||
status=status_pb2.Status(error_code=_status.code, reason=_status.message),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user