Permalink
Browse files

Improve example in consumer user guide. Closes #298

  • Loading branch information...
1 parent ed6788c commit f612a949f9413fc87389ac85976b42bb39a81b1c @ask ask committed Jan 13, 2014
Showing with 2 additions and 3 deletions.
  1. +2 −3 docs/userguide/consumers.rst
View
5 docs/userguide/consumers.rst
@@ -38,9 +38,8 @@ Draining events from several consumers:
from kombu.utils import nested
with connection.channel(), connection.channel() as (channel1, channel2):
- consumers = [Consumer(channel1, queues1, accept=['json']),
- Consumer(channel2, queues2, accept=['json'])]
- with nested(\*consumers):
+ with nested(Consumer(channel1, queues1, accept=['json']),
+ Consumer(channel2, queues2, accept=['json'])):
connection.drain_events(timeout=1)

0 comments on commit f612a94

Please sign in to comment.