mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-03 12:07:57 +00:00
Add conversion/comparison operators to Buffer
This commit is contained in:
@@ -81,10 +81,10 @@ int main(int argc, char* argv[]) {
|
||||
else {
|
||||
// Print the key (if any)
|
||||
if (msg.get_key()) {
|
||||
cout << msg.get_key().as_string() << " -> ";
|
||||
cout << msg.get_key() << " -> ";
|
||||
}
|
||||
// Print the payload
|
||||
cout << msg.get_payload().as_string() << endl;
|
||||
cout << msg.get_payload() << endl;
|
||||
// Now commit the message
|
||||
consumer.commit(msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user