summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_reader.erl12
-rw-r--r--src/rabbit_tests.erl6
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,