diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2011-03-17 17:57:38 +0000 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2011-03-17 17:57:38 +0000 |
commit | 2398d1d0ee6180c9dbd37ba325bbf071fd73d62e (patch) | |
tree | bc711abcf65808c878fda32e60d9f0a958249d29 /src/rabbit_exchange_type_fanout.erl | |
parent | 8ba9a5eb2bf173fe0b2d8eafe086ad5b98ab8253 (diff) | |
download | rabbitmq-server-2398d1d0ee6180c9dbd37ba325bbf071fd73d62e.tar.gz |
Not 100% beautiful, but this gets serial ids into the hands of add_binding and remove_binding.
Diffstat (limited to 'src/rabbit_exchange_type_fanout.erl')
-rw-r--r-- | src/rabbit_exchange_type_fanout.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rabbit_exchange_type_fanout.erl b/src/rabbit_exchange_type_fanout.erl index bc5293c8..9b6e68d8 100644 --- a/src/rabbit_exchange_type_fanout.erl +++ b/src/rabbit_exchange_type_fanout.erl @@ -19,7 +19,7 @@ -behaviour(rabbit_exchange_type). --export([description/0, route/2]). +-export([description/0, route/2, serialise_events/0]). -export([validate/1, create/2, recover/2, delete/3, add_binding/3, remove_bindings/3, assert_args_equivalence/2]). -include("rabbit_exchange_type_spec.hrl"). @@ -35,6 +35,8 @@ description() -> [{name, <<"fanout">>}, {description, <<"AMQP fanout exchange, as per the AMQP specification">>}]. +serialise_events() -> false. + route(#exchange{name = Name}, _Delivery) -> rabbit_router:match_routing_key(Name, ['_']). |