summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-09-27 21:58:09 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2010-09-27 21:58:09 +0100
commit5d49e7111b55c0faffa398b6436738b7adf48020 (patch)
treee1aa90353e05c95c3b3ff0edd43855a7e06f8a10
parent18701b1cf851495cd5ca4f7ffc97c6db04568d67 (diff)
downloadrabbitmq-server-git-5d49e7111b55c0faffa398b6436738b7adf48020.tar.gz
generalise binding:list
in case we ever come up with other source types
-rw-r--r--src/rabbit_binding.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rabbit_binding.erl b/src/rabbit_binding.erl
index 71b9960bb0..ff3fa5ac2d 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)].