Skip to content

Commit

Permalink
Use the Connection.qos_semantics_matches_spec property instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Apr 15, 2014
1 parent 7289933 commit abf1ff9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions celery/worker/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,7 @@ def start(self, c):
# - RabbitMQ 3.3 completely redefines how basic_qos works..
# This will detect if the new qos smenatics is in effect,
# and if so make sure the 'apply_global' flag is set on qos updates.
qos_global = not (
c.connection.transport.qos_semantics_matches_spec(
c.connection.connection))
qos_global = not c.connection.qos_semantics_matches_spec

# set initial prefetch count
c.connection.default_channel.basic_qos(
Expand Down

0 comments on commit abf1ff9

Please sign in to comment.