Skip to content

Commit

Permalink
add fanout exchanges
Browse files Browse the repository at this point in the history
  • Loading branch information
mhat committed Jul 20, 2011
1 parent 05c24f3 commit 6c6df1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/carrot.rb
Expand Up @@ -61,6 +61,10 @@ def headers(name = 'amq.match', opts = {})
exchanges[name] ||= AMQP::Exchange.new(self, :headers, name, opts)
end

def fanout(name = 'amq.fanout', opts = {})
exchanges[name] ||= AMQP::Exchange.new(self, :fanout, name, opts)
end

def exchanges
@exchanges ||= {}
end
Expand Down

0 comments on commit 6c6df1b

Please sign in to comment.