diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2013-04-17 12:33:40 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2013-04-17 12:33:40 +0100 |
commit | 08477ab54edd3b4652fd4d8abd84a2ac3f0bf3ba (patch) | |
tree | 4d1d9f71f99edea9afcc07140600fba139c87dfd | |
parent | 4f58d9a56ff2f72f5524b898a079cc6ee8041acf (diff) | |
download | rabbitmq-server-bug25494.tar.gz |
Cosmeticbug25494
-rw-r--r-- | src/rabbit_exchange_decorator.erl | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/rabbit_exchange_decorator.erl b/src/rabbit_exchange_decorator.erl index 79ea212f..3abaa48c 100644 --- a/src/rabbit_exchange_decorator.erl +++ b/src/rabbit_exchange_decorator.erl @@ -93,13 +93,12 @@ filter(Modules) -> [M || M <- Modules, code:which(M) =/= non_existing]. set(X) -> - X#exchange{ - decorators = - lists:foldl(fun (D, {Route, NoRoute}) -> - Callbacks = D:active_for(X), - {cons_if_eq(all, Callbacks, D, Route), - cons_if_eq(noroute, Callbacks, D, NoRoute)} - end, {[], []}, list())}. + Decs = lists:foldl(fun (D, {Route, NoRoute}) -> + ActiveFor = D:active_for(X), + {cons_if_eq(all, ActiveFor, D, Route), + cons_if_eq(noroute, ActiveFor, D, NoRoute)} + end, {[], []}, list()), + X#exchange{decorators = Decs}. list() -> [M || {_, M} <- rabbit_registry:lookup_all(exchange_decorator)]. |