summaryrefslogtreecommitdiff
path: root/kombu/mixins.py
diff options
context:
space:
mode:
Diffstat (limited to 'kombu/mixins.py')
-rw-r--r--kombu/mixins.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/kombu/mixins.py b/kombu/mixins.py
index f1b3c1c9..14c1c1b9 100644
--- a/kombu/mixins.py
+++ b/kombu/mixins.py
@@ -49,6 +49,7 @@ class ConsumerMixin:
channels can be used for different QoS requirements.
Example:
+ -------
.. code-block:: python
class Worker(ConsumerMixin):
@@ -65,8 +66,8 @@ class ConsumerMixin:
print('Got task: {0!r}'.format(body))
message.ack()
- Methods:
-
+ Methods
+ -------
* :meth:`extra_context`
Optional extra context manager that will be entered
@@ -257,6 +258,7 @@ class ConsumerProducerMixin(ConsumerMixin):
publishing messages.
Example:
+ -------
.. code-block:: python
class Worker(ConsumerProducerMixin):