diff --git a/proxy/src/message_client/ClientV2.cpp b/proxy/src/message_client/ClientV2.cpp index cd61c791e0..3ef0d8a004 100644 --- a/proxy/src/message_client/ClientV2.cpp +++ b/proxy/src/message_client/ClientV2.cpp @@ -8,9 +8,7 @@ namespace milvus::message_client { MsgClientV2 &MsgClientV2::GetInstance() { - // TODO: do not hardcode pulsar message configure and init std::string pulsar_server_addr(std::string {"pulsar://"} + config.pulsar.address() + ":" + std::to_string(config.pulsar.port())); -// "pulsar://localhost:6650" int64_t client_id = 0; static MsgClientV2 msg_client(client_id, pulsar_server_addr); @@ -144,11 +142,8 @@ Status MsgClientV2::SendMutMessage(const milvus::grpc::InsertParam &request, uin milvus::grpc::InsertOrDeleteMsg mut_msg; for (auto i = 0; i < row_count; i++) { mut_msg.set_op(milvus::grpc::OpType::INSERT); - mut_msg.set_uid(GetUniqueQId()); + mut_msg.set_uid(request.entity_id_array(i)); mut_msg.set_client_id(client_id_); - // TODO: add channel id - auto channel_id = 0; - mut_msg.set_channel_id(channel_id); mut_msg.set_timestamp(timestamp); mut_msg.set_collection_name(request.collection_name()); mut_msg.set_partition_tag(request.partition_tag()); diff --git a/proxy/src/message_client/Producer.cpp b/proxy/src/message_client/Producer.cpp index de3cf46ede..0fbb3a0453 100644 --- a/proxy/src/message_client/Producer.cpp +++ b/proxy/src/message_client/Producer.cpp @@ -34,7 +34,7 @@ namespace message_client { Result MsgProducer::send(milvus::grpc::InsertOrDeleteMsg &msg) { int32_t channel_id = makeHash(std::to_string(msg.uid())) % 1024; - std::cout << "partition id := " << channel_id <