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 | 9cb77b20de03c2c036fc106ba1c35d34626fae1e (patch) | |
| tree | ec506c1c0e60ae5947bc472ffc277d07c0e55431 | |
| parent | 0c58baad2ef4aad18a76409c80a95351feb44cc8 (diff) | |
| download | rabbitmq-server-git-9cb77b20de03c2c036fc106ba1c35d34626fae1e.tar.gz | |
correct comment
| -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 9f1b52e602..acdc2cffae 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, |
