diff options
| -rw-r--r-- | src/rabbit_channel.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index 0dd5892954..469cf4f70b 100644 --- a/src/rabbit_channel.erl +++ b/src/rabbit_channel.erl @@ -522,8 +522,8 @@ check_internal_exchange(#exchange{name = Name, internal = true}) -> check_internal_exchange(_) -> ok. -qbin_to_resource(QueueNameBin, #ch{virtual_host = VHostPath}) -> - rabbit_misc:r(VHostPath, queue, QueueNameBin). +qbin_to_resource(QueueNameBin, State) -> + name_to_resource(queue, QueueNameBin, State). name_to_resource(Type, NameBin, #ch{virtual_host = VHostPath}) -> rabbit_misc:r(VHostPath, Type, NameBin). |
