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 | 5d49e7111b55c0faffa398b6436738b7adf48020 (patch) | |
| tree | e1aa90353e05c95c3b3ff0edd43855a7e06f8a10 | |
| parent | 18701b1cf851495cd5ca4f7ffc97c6db04568d67 (diff) | |
| download | rabbitmq-server-git-5d49e7111b55c0faffa398b6436738b7adf48020.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 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)]. |
