Fix compile error

Signed-off-by: JinHai-CN <hai.jin@zilliz.com>
This commit is contained in:
JinHai-CN 2020-04-07 10:35:34 +08:00
parent c824c297c1
commit c6f4660b15

View File

@ -57,7 +57,7 @@ bool
GrpcClient::HasCollection(const ::milvus::grpc::TableName& collection_name, Status& status) {
ClientContext context;
::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()) {
std::cerr << "HasCollection gRPC failed!" << std::endl;