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 | 6b0aef0a7a46dc38b0bba86fe6e201b576a5ed35 (patch) | |
| tree | e295c9ab63e9014273694d1ddda0ccd983bb8470 | |
| parent | 092da3e7932744df96204a8ff2e277ea339f096a (diff) | |
| download | rabbitmq-server-git-6b0aef0a7a46dc38b0bba86fe6e201b576a5ed35.tar.gz | |
Whitespace
| -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 f2b2bdb616..70a0741d0d 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 010cebed04..32e80e440f 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, |
