diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2010-09-27 21:58:09 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-09-27 21:58:09 +0100 |
commit | cc86e7c2354a826aca17b961faf2696d26fedaad (patch) | |
tree | e1aa90353e05c95c3b3ff0edd43855a7e06f8a10 | |
parent | da43ca9e9e0b3881b1ba11137b2dcb157c19a789 (diff) | |
download | rabbitmq-server-cc86e7c2354a826aca17b961faf2696d26fedaad.tar.gz |
generalise binding:list
in case we ever come up with other source types
-rw-r--r-- | src/rabbit_binding.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rabbit_binding.erl b/src/rabbit_binding.erl index 71b9960b..ff3fa5ac 100644 --- a/src/rabbit_binding.erl +++ b/src/rabbit_binding.erl @@ -176,10 +176,10 @@ remove(Binding, InnerFun) -> end. list(VHostPath) -> - Route = #route{binding = #binding{ - source = rabbit_misc:r(VHostPath, exchange), - destination = rabbit_misc:r(VHostPath, '_'), - _ = '_'}, + VHostResource = rabbit_misc:r(VHostPath, '_'), + Route = #route{binding = #binding{source = VHostResource, + destination = VHostResource, + _ = '_'}, _ = '_'}, [B || #route{binding = B} <- mnesia:dirty_match_object(rabbit_route, Route)]. |