diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2013-03-21 12:05:20 +0000 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2013-03-21 12:05:20 +0000 |
| commit | ae743ee4ea4e6cec41fb43710b7f908c8f9ed71f (patch) | |
| tree | ec506c1c0e60ae5947bc472ffc277d07c0e55431 | |
| parent | 1b0febe01dae9aca674393cf708c768f80822e59 (diff) | |
| download | rabbitmq-server-bug25384.tar.gz | |
correct commentbug25384
| -rw-r--r-- | src/rabbit_registry.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_registry.erl b/src/rabbit_registry.erl index 9f1b52e6..acdc2cff 100644 --- a/src/rabbit_registry.erl +++ b/src/rabbit_registry.erl @@ -95,8 +95,9 @@ internal_unregister(Class, TypeName) -> true = ets:delete(?ETS_NAME, UnregArg), ok. -%% (un)register exchange decorator route callback only when implemented -%% to avoid decorators being called unnecessarily on the fast publishing path +%% register exchange decorator route callback only when implemented, +%% in order to avoid unnecessary decorator calls on the fast +%% publishing path conditional_register({{exchange_decorator, Type}, ModuleName}) -> case erlang:function_exported(ModuleName, route, 2) of true -> true = ets:insert(?ETS_NAME, |
