diff options
author | Michael Bridgen <mikeb@lshift.net> | 2010-02-24 14:05:24 +0000 |
---|---|---|
committer | Michael Bridgen <mikeb@lshift.net> | 2010-02-24 14:05:24 +0000 |
commit | 4dbb5487c40b0a9bd6aefdb85a9ec34fba162bde (patch) | |
tree | 3a18373e684b323a4c5db629463334662a87083d /src/rabbit_exchange_type_direct.erl | |
parent | 0d4f9ac7a9b92c4d20d9c96b7e83fa1bbcff69cf (diff) | |
download | rabbitmq-server-4dbb5487c40b0a9bd6aefdb85a9ec34fba162bde.tar.gz |
Reimagine delete_binding/2 as remove_bindings/2. The hooks are nowbug22169
called without reference to the initiating action; e.g., if a
queue.unbind causes an exchange deletion, Module:delete/2 is called
rather than Module:delete_binding/2.
Diffstat (limited to 'src/rabbit_exchange_type_direct.erl')
-rw-r--r-- | src/rabbit_exchange_type_direct.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_exchange_type_direct.erl b/src/rabbit_exchange_type_direct.erl index deb8d76f..9b71e0e1 100644 --- a/src/rabbit_exchange_type_direct.erl +++ b/src/rabbit_exchange_type_direct.erl @@ -36,7 +36,7 @@ -export([description/0, publish/2]). -export([validate/1, create/1, recover/2, delete/2, - add_binding/2, delete_binding/2]). + add_binding/2, remove_bindings/2]). -include("rabbit_exchange_type_spec.hrl"). -rabbit_boot_step({?MODULE, @@ -60,4 +60,4 @@ create(_X) -> ok. recover(_X, _Bs) -> ok. delete(_X, _Bs) -> ok. add_binding(_X, _B) -> ok. -delete_binding(_X, _B) -> ok. +remove_bindings(_X, _Bs) -> ok. |