Fix tiny mistake in introduction (#1312)

* Fix tiny mistake in introduction

… at least I _think_ it's a mistake.

* Remove unused import in code example

* Fix minor grammatical errors
This commit is contained in:
Gabriel Niebler 2021-03-16 08:11:47 +01:00 committed by GitHub
parent 1e20625d7b
commit e0fb1f1123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -173,7 +173,7 @@ Or handle channels manually:
with connection.channel() as channel:
producer = Producer(channel, ...)
consumer = Producer(channel)
consumer = Consumer(channel)
All objects can be used outside of with statements too,
@ -181,7 +181,7 @@ just remember to close the objects after use:
.. code-block:: python
from kombu import Connection, Consumer, Producer
from kombu import Connection, Consumer
connection = Connection()
# ...
@ -235,7 +235,7 @@ There are some concepts you should be familiar with before starting:
* Consumers
Consumers declares a queue, binds it to a exchange and receives
A consumer declares a queue, binds it to an exchange and receives
messages from it.
* Queues