lookup_rabbitmq pika > 1.0.0 is_closing bug fix (#61959)

* In pika v1.0.0 BlockingChannel.is_closing was removed.  Updating
plugin accordingly.

Ref: https://github.com/pika/pika/pull/1034

* Adding change fragment for is_closing bug.

* Updated change fragment description.
This commit is contained in:
John Imison 2019-09-11 16:23:27 +10:00 committed by Felix Fontein
parent ff53ca76b8
commit 9b149917a6
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- rabbitmq lookup plugin - Fix for rabbitmq lookups failing when using pika v1.0.0 and newer.

View file

@ -180,7 +180,7 @@ class LookupModule(LookupBase):
else: else:
break break
if connection.is_closing or connection.is_closed: if connection.is_closed:
return [ret] return [ret]
else: else:
try: try: