mirror of https://github.com/celery/kombu.git
README: Fixed typo Connection -> BrokerConnection
This commit is contained in:
parent
71a8d2f39f
commit
d8602b1415
|
@ -8,14 +8,14 @@
|
|||
|
||||
Proposed API::
|
||||
|
||||
from kombu.connection Connection
|
||||
from kombu.connection BrokerConnection
|
||||
from kombu.messaging import Exchange, Binding, Consumer, Producer
|
||||
|
||||
media_exchange = Exchange("media", "direct", durable=True)
|
||||
video_binding = Binding("video", exchange=media_exchange, key="video")
|
||||
|
||||
# connections/channels
|
||||
connection = Connection("localhost", "guest", "guest", "/")
|
||||
connection = BrokerConnection("localhost", "guest", "guest", "/")
|
||||
channel = connection.channel()
|
||||
|
||||
# produce
|
||||
|
|
Loading…
Reference in New Issue