Merge pull request #10225 from ariel-anieli/pr-boolean-types
Replaced true | false by boolean()
This commit is contained in:
commit
81d79293d9
|
@ -22,9 +22,8 @@
|
||||||
|
|
||||||
-type amqp10_prim() ::
|
-type amqp10_prim() ::
|
||||||
null |
|
null |
|
||||||
true |
|
boolean() |
|
||||||
false |
|
{boolean, boolean()} |
|
||||||
{boolean, true | false} |
|
|
||||||
{ubyte, byte()} |
|
{ubyte, byte()} |
|
||||||
{ushort, non_neg_integer()} |
|
{ushort, non_neg_integer()} |
|
||||||
{uint, non_neg_integer()} |
|
{uint, non_neg_integer()} |
|
||||||
|
|
|
@ -91,7 +91,7 @@
|
||||||
waiting_set = gb_trees:empty(),
|
waiting_set = gb_trees:empty(),
|
||||||
only_acks_received = true,
|
only_acks_received = true,
|
||||||
|
|
||||||
%% true | false, only relevant in the direct
|
%% boolean(), only relevant in the direct
|
||||||
%% client case.
|
%% client case.
|
||||||
%% when true, consumers will manually notify
|
%% when true, consumers will manually notify
|
||||||
%% queue pids using rabbit_amqqueue_common:notify_sent/2
|
%% queue pids using rabbit_amqqueue_common:notify_sent/2
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
mirroring_policy_version = 0,
|
mirroring_policy_version = 0,
|
||||||
%% running | flow | idle
|
%% running | flow | idle
|
||||||
status,
|
status,
|
||||||
%% true | false
|
%% boolean()
|
||||||
single_active_consumer_on
|
single_active_consumer_on
|
||||||
}).
|
}).
|
||||||
|
|
||||||
|
|
|
@ -290,7 +290,7 @@ ini_file_data(Path) ->
|
||||||
ini_file_data(Path, filelib:is_file(Path)).
|
ini_file_data(Path, filelib:is_file(Path)).
|
||||||
|
|
||||||
|
|
||||||
-spec ini_file_data(Path :: string(), FileExists :: true | false)
|
-spec ini_file_data(Path :: string(), FileExists :: boolean())
|
||||||
-> list() | {error, atom()}.
|
-> list() | {error, atom()}.
|
||||||
%% @doc Return the parsed ini file for the specified path.
|
%% @doc Return the parsed ini file for the specified path.
|
||||||
%% @end
|
%% @end
|
||||||
|
|
|
@ -537,7 +537,7 @@ pagination_params(ReqData) ->
|
||||||
[PageNum, PageSize])})
|
[PageNum, PageSize])})
|
||||||
end.
|
end.
|
||||||
|
|
||||||
-spec maybe_reverse([any()], string() | true | false) -> [any()].
|
-spec maybe_reverse([any()], string() | boolean()) -> [any()].
|
||||||
maybe_reverse([], _) ->
|
maybe_reverse([], _) ->
|
||||||
[];
|
[];
|
||||||
maybe_reverse(RangeList, true) when is_list(RangeList) ->
|
maybe_reverse(RangeList, true) when is_list(RangeList) ->
|
||||||
|
|
|
@ -262,11 +262,11 @@ maybe_cleanup(State, UnreachableNodes) ->
|
||||||
%% @doc Iterate over the list of partitioned nodes, either logging the
|
%% @doc Iterate over the list of partitioned nodes, either logging the
|
||||||
%% node that would be removed or actually removing it.
|
%% node that would be removed or actually removing it.
|
||||||
%% @spec maybe_remove_nodes(PartitionedNodes :: [node()],
|
%% @spec maybe_remove_nodes(PartitionedNodes :: [node()],
|
||||||
%% WarnOnly :: true | false) -> ok
|
%% WarnOnly :: boolean()) -> ok
|
||||||
%% @end
|
%% @end
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
-spec maybe_remove_nodes(PartitionedNodes :: [node()],
|
-spec maybe_remove_nodes(PartitionedNodes :: [node()],
|
||||||
WarnOnly :: true | false) -> ok.
|
WarnOnly :: boolean()) -> ok.
|
||||||
maybe_remove_nodes([], _) -> ok;
|
maybe_remove_nodes([], _) -> ok;
|
||||||
maybe_remove_nodes([Node | Nodes], true) ->
|
maybe_remove_nodes([Node | Nodes], true) ->
|
||||||
?LOG_WARNING(
|
?LOG_WARNING(
|
||||||
|
|
|
@ -246,7 +246,7 @@ node_name_parse(Value) ->
|
||||||
%% result of the IPv4 check is processed.
|
%% result of the IPv4 check is processed.
|
||||||
%% @end
|
%% @end
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
-spec node_name_parse(IsIPv4 :: true | false, Value :: string())
|
-spec node_name_parse(IsIPv4 :: boolean(), Value :: string())
|
||||||
-> string().
|
-> string().
|
||||||
node_name_parse(true, Value) -> Value;
|
node_name_parse(true, Value) -> Value;
|
||||||
node_name_parse(false, Value) ->
|
node_name_parse(false, Value) ->
|
||||||
|
|
Loading…
Reference in New Issue