summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Arthur <mumrah@gmail.com>2012-09-28 21:48:45 -0300
committerDavid Arthur <mumrah@gmail.com>2012-09-28 21:48:45 -0300
commit02e59b49dc32986c3fe20504f93033141d88f3b5 (patch)
treef9c926e2c2c68d581af29b56b843054a36ffa3e4
parent478de24d5b4a9c73c2fc969f3fd7cf8ff0710ecb (diff)
downloadkafka-python-02e59b49dc32986c3fe20504f93033141d88f3b5.tar.gz
Update send_messages_simple example in README.md
-rw-r--r--README.md6
1 files changed, 2 insertions, 4 deletions
diff --git a/README.md b/README.md
index 73894d1..ce257f1 100644
--- a/README.md
+++ b/README.md
@@ -42,11 +42,9 @@ python -m test.integration
## Send a message to a topic
-You need to specify the topic and partition
-
```python
kafka = KafkaClient("localhost", 9092)
- kafka.send_messages_simple("my-topic", 0, "some message")
+ kafka.send_messages_simple("my-topic", "some message")
kafka.close()
```
@@ -56,7 +54,7 @@ Same as before, just add more arguments to `send_simple`
```python
kafka = KafkaClient("localhost", 9092)
- kafka.send_messages_simple("my-topic", 0, "some message", "another message", "and another")
+ kafka.send_messages_simple("my-topic", "some message", "another message", "and another")
kafka.close()
```