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.
This commit is contained in:
atravers
2017-11-29 13:03:02 +09:00
committed by GitHub
parent 1817115784
commit cc7d183ff1

View File

@@ -43,6 +43,7 @@ int main() {
// Produce a message! // Produce a message!
string message = "hey there!"; string message = "hey there!";
producer.produce(MessageBuilder("my_topic").partition(0).payload(message)); producer.produce(MessageBuilder("my_topic").partition(0).payload(message));
producer.flush();
} }
``` ```