mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-01 19:18:04 +00:00
Clear messages acked/expected acks on buffered producer
This commit is contained in:
@@ -224,6 +224,8 @@ template <typename BufferType>
|
|||||||
void BufferedProducer<BufferType>::clear() {
|
void BufferedProducer<BufferType>::clear() {
|
||||||
QueueType tmp;
|
QueueType tmp;
|
||||||
std::swap(tmp, messages_);
|
std::swap(tmp, messages_);
|
||||||
|
expected_acks_ = 0;
|
||||||
|
messages_acked_ = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename BufferType>
|
template <typename BufferType>
|
||||||
|
|||||||
Reference in New Issue
Block a user