summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Bridgen <mikeb@lshift.net>2010-02-23 15:06:01 +0000
committerMichael Bridgen <mikeb@lshift.net>2010-02-23 15:06:01 +0000
commitb6b5c6fe0f87054070395db66d116543d2dad485 (patch)
tree865e38de32e9eb800be296cf372800a3e9733837
parent8f37e77354d46162ef37f5987f23afd7cb6c3be9 (diff)
downloadrabbitmq-server-git-b6b5c6fe0f87054070395db66d116543d2dad485.tar.gz
Of course, we want to return the type atom rather than the module (but still check it's actually registered)
-rw-r--r--src/rabbit_exchange.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_exchange.erl b/src/rabbit_exchange.erl
index 716ff87a27..58f71662bd 100644
--- a/src/rabbit_exchange.erl
+++ b/src/rabbit_exchange.erl
@@ -178,7 +178,8 @@ check_type(TypeBin) ->
rabbit_misc:protocol_error(
command_invalid, "unknown exchange type '~s'", [TypeBin]);
T ->
- type_to_module(T)
+ _Module = type_to_module(T),
+ T
end.
assert_type(#exchange{ type = ActualType }, RequiredType)