Skip to content

Commit

Permalink
Merge pull request ruby-amqp#400 from camelpunch/reuse-exchange-defau…
Browse files Browse the repository at this point in the history
…lt-method

Channel delegates to Exchange.default
  • Loading branch information
michaelklishin committed Apr 11, 2016
2 parents 8386228 + 8ade640 commit 58aa36c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bunny/channel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def headers(name, opts = {})
# @see http://rubybunny.info/articles/exchanges.html Exchanges and Publishing guide
# @api public
def default_exchange
self.direct(AMQ::Protocol::EMPTY_STRING, :no_declare => true)
Exchange.default(self)
end

# Declares a headers exchange or looks it up in the cache of previously
Expand Down

0 comments on commit 58aa36c

Please sign in to comment.