Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
epandurski committed Apr 2, 2019
1 parent 9de1986 commit b8811cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flask_melodramatiq/rabbitmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ def publish_message(self, message, *, exchange=''):

attempts = 1
try:
# In pika 1.0.0 the legacy `basic_publish` method is
# In pika 1.0 the legacy `basic_publish` method is
# removed, and `publish` renamed to `basic_publish`. So,
# to support pika versions before and after 1.0.0 we need
# an ugly hack.
# to support pika versions before and after 1.0 we need an
# ugly hack.
publish = self.channel.publish
except AttributeError:
publish = self.channel.basic_publish
Expand Down

0 comments on commit b8811cc

Please sign in to comment.