From 88dd16e0e79d675759886f12e0ccb94400ac0d64 Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Sun, 16 Apr 2017 15:33:38 -0700 Subject: [PATCH] Update code on README.md --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index c5d5747..44c4fbf 100644 --- a/README.md +++ b/README.md @@ -37,12 +37,9 @@ int main() { // Create the producer Producer producer(config); - // Get the topic we'll write into - Topic topic = producer.get_topic("my_topic"); - // Produce a message! string message = "hey there!"; - producer.produce(MessageBuilder(topic).partition(0).payload(message)); + producer.produce(MessageBuilder("my_topic").partition(0).payload(message)); } ```