fix rt data

This commit is contained in:
lnk
2025-02-18 17:10:22 +08:00
parent a110614220
commit 183685b017
3 changed files with 114 additions and 9 deletions

View File

@@ -8,6 +8,7 @@
#include <iostream>
#include <string>
#include "../mms/db_interface.h"
#include "../include/rocketmq/CProducer.h"
#include "../include/rocketmq/CMessage.h"
#include "../include/rocketmq/CSendResult.h"
@@ -723,6 +724,8 @@ void rocketmq_producer_send(const char* strbody,const char* topic)
}
#endif
extern "C" {
extern std::string G_MQCONSUMER_TOPIC_RT;
void rocketmq_test_rt()
@@ -795,14 +798,12 @@ void rocketmq_test_rc()
data.mp_id = 123123;
my_rocketmq_send(data);
}
}
std::string to_string(long long value) {
std::stringstream ss;
ss << value;
return ss.str();
}
#if 0
void rocketmq_test_300(int mpnum,int front_index) {
Ckafka_data_t data;
data.strTopic = QString::fromStdString(G_ROCKETMQ_TOPIC);
@@ -879,3 +880,6 @@ void rocketmq_test_300(int mpnum,int front_index) {
std::cout << "Finished sending " << total_messages << " messages." << std::endl;
}
#endif