From cc7d183ff1dbc9929f39f6838096fc0818e29c76 Mon Sep 17 00:00:00 2001 From: atravers Date: Wed, 29 Nov 2017 13:03:02 +0900 Subject: [PATCH] Update README.md Should there not be a flush at the end? In my case, the application quit without the message ending up on Kafka. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 29342ed..38878ed 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ int main() { // Produce a message! string message = "hey there!"; producer.produce(MessageBuilder("my_topic").partition(0).payload(message)); + producer.flush(); } ```