mirror of https://github.com/milvus-io/milvus.git
parent
c824c297c1
commit
c6f4660b15
|
@ -57,7 +57,7 @@ bool
|
||||||
GrpcClient::HasCollection(const ::milvus::grpc::TableName& collection_name, Status& status) {
|
GrpcClient::HasCollection(const ::milvus::grpc::TableName& collection_name, Status& status) {
|
||||||
ClientContext context;
|
ClientContext context;
|
||||||
::milvus::grpc::BoolReply response;
|
::milvus::grpc::BoolReply response;
|
||||||
::grpc::Status grpc_status = stub_->HasCollection(&context, collection_name, &response);
|
::grpc::Status grpc_status = stub_->HasTable(&context, collection_name, &response);
|
||||||
|
|
||||||
if (!grpc_status.ok()) {
|
if (!grpc_status.ok()) {
|
||||||
std::cerr << "HasCollection gRPC failed!" << std::endl;
|
std::cerr << "HasCollection gRPC failed!" << std::endl;
|
||||||
|
|
Loading…
Reference in New Issue