Skip to content

Commit 6bb4eda

Browse files
committed
documentation
1 parent d84ad73 commit 6bb4eda

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from rabbitmq_amqp_python_client import Converter
2+
13
# RabbitMQ AMQP 1.0 Python Client
24

35
This library is in early stages of development. It is meant to be used with RabbitMQ 4.0.
@@ -83,7 +85,7 @@ For example:
8385

8486
# publish messages
8587
for i in range(messages_to_publish):
86-
publisher.publish(Message(body="test"))
88+
publisher.publish(Message(body=Converter.string_to_bytes("test")))
8789

8890
publisher.close()
8991
```

0 commit comments

Comments
 (0)