diff options
author | Emile Joubert <emile@rabbitmq.com> | 2010-10-29 10:21:55 +0100 |
---|---|---|
committer | Emile Joubert <emile@rabbitmq.com> | 2010-10-29 10:21:55 +0100 |
commit | e3d0a07bf1d3e31a35134bd24f834ed389ed6816 (patch) | |
tree | e295c9ab63e9014273694d1ddda0ccd983bb8470 | |
parent | 2061b79351f809b8540c15ef2f8fe8166ff7d943 (diff) | |
download | rabbitmq-server-e3d0a07bf1d3e31a35134bd24f834ed389ed6816.tar.gz |
Whitespacebug23218
-rw-r--r-- | src/rabbit_reader.erl | 12 | ||||
-rw-r--r-- | src/rabbit_tests.erl | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl index f2b2bdb6..70a0741d 100644 --- a/src/rabbit_reader.erl +++ b/src/rabbit_reader.erl @@ -237,26 +237,26 @@ server_properties() -> {ok, Version} = application:get_key(rabbit, vsn), %% Get any configuration-specified server properties - {ok, RawConfigServerProps} = application:get_env(rabbit, + {ok, RawConfigServerProps} = application:get_env(rabbit, server_properties), - %% Normalize the simplifed (2-tuple) and unsimplified (3-tuple) forms + %% Normalize the simplifed (2-tuple) and unsimplified (3-tuple) forms %% from the config and merge them with the generated built-in properties - NormalizedConfigServerProps = + NormalizedConfigServerProps = [case X of {KeyAtom, Value} -> {atom_to_binary(KeyAtom, latin1), longstr, list_to_binary(Value)}; {BinKey, Type, Value} -> {BinKey, Type, Value} - end || X <- RawConfigServerProps ++ - [{product, Product}, + end || X <- RawConfigServerProps ++ + [{product, Product}, {version, Version}, {platform, "Erlang/OTP"}, {copyright, ?COPYRIGHT_MESSAGE}, {information, ?INFORMATION_MESSAGE}]], %% Filter duplicated properties in favor of config file provided values - lists:usort(fun ({K1,_,_},{K2,_,_}) -> K1 =< K2 end, + lists:usort(fun ({K1,_,_}, {K2,_,_}) -> K1 =< K2 end, NormalizedConfigServerProps). inet_op(F) -> rabbit_misc:throw_on_error(inet_error, F). diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl index 010cebed..32e80e44 100644 --- a/src/rabbit_tests.erl +++ b/src/rabbit_tests.erl @@ -1991,10 +1991,10 @@ test_configurable_server_properties() -> {ok, ServerProperties} = application:get_env(rabbit, server_properties), %% Helper functions - ConsProp = fun (X) -> application:set_env(rabbit, - server_properties, + ConsProp = fun (X) -> application:set_env(rabbit, + server_properties, [X | ServerProperties]) end, - IsPropPresent = fun (X) -> lists:member(X, + IsPropPresent = fun (X) -> lists:member(X, rabbit_reader:server_properties()) end, |