Skip to content

Commit 02e59b4

Browse files
committed
Update send_messages_simple example in README.md
1 parent 478de24 commit 02e59b4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,9 @@ python -m test.integration
4242

4343
## Send a message to a topic
4444

45-
You need to specify the topic and partition
46-
4745
```python
4846
kafka = KafkaClient("localhost", 9092)
49-
kafka.send_messages_simple("my-topic", 0, "some message")
47+
kafka.send_messages_simple("my-topic", "some message")
5048
kafka.close()
5149
```
5250

@@ -56,7 +54,7 @@ Same as before, just add more arguments to `send_simple`
5654

5755
```python
5856
kafka = KafkaClient("localhost", 9092)
59-
kafka.send_messages_simple("my-topic", 0, "some message", "another message", "and another")
57+
kafka.send_messages_simple("my-topic", "some message", "another message", "and another")
6058
kafka.close()
6159
```
6260

0 commit comments

Comments
 (0)