Skip to content

Commit

Permalink
Merge pull request #1111 from abompard/twisted-channel-fix
Browse files Browse the repository at this point in the history
Twisted channel: relay the consumer_tags property
  • Loading branch information
lukebakken committed Aug 24, 2018
2 parents b74870b + edbdeb9 commit 706ac7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pika/adapters/twisted_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ def is_open(self):
def flow_active(self):
return self._channel.flow_active

@property
def consumer_tags(self):
return self._channel.consumer_tags

# Deferred-equivalents of public Channel methods

def callback_deferred(self, deferred, replies):
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/twisted_adapter_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def test_passthrough(self):
# Check the simple attribute passthroughs
attributes = (
"channel_number", "connection", "is_closed", "is_closing",
"is_open", "flow_active",
"is_open", "flow_active", "consumer_tags",
)
for name in attributes:
value = "testvalue-{}".format(name)
Expand Down

0 comments on commit 706ac7e

Please sign in to comment.