mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-19 03:04:50 +00:00
Allow setting timestamp on produced messages
This commit is contained in:
@@ -70,8 +70,9 @@ void Producer::produce(const MessageBuilder& builder) {
|
||||
RD_KAFKA_V_TOPIC(builder.topic().data()),
|
||||
RD_KAFKA_V_PARTITION(builder.partition()),
|
||||
RD_KAFKA_V_MSGFLAGS(policy),
|
||||
RD_KAFKA_V_VALUE((void*)payload.get_data(), payload.get_size()),
|
||||
RD_KAFKA_V_TIMESTAMP(builder.timestamp().count()),
|
||||
RD_KAFKA_V_KEY((void*)key.get_data(), key.get_size()),
|
||||
RD_KAFKA_V_VALUE((void*)payload.get_data(), payload.get_size()),
|
||||
RD_KAFKA_V_OPAQUE(builder.user_data()),
|
||||
RD_KAFKA_V_END);
|
||||
check_error(result);
|
||||
|
||||
Reference in New Issue
Block a user