Skip to content

Commit 9f9a414

Browse files
Follow-up to 08168de
References #1590. [#157380396]
1 parent 08168de commit 9f9a414

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/rabbit_policies.erl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ register() ->
4141
{policy_validator, <<"expires">>},
4242
{policy_validator, <<"max-length">>},
4343
{policy_validator, <<"max-length-bytes">>},
44-
{policy_validator, <<"max-priority">>},
4544
{policy_validator, <<"queue-mode">>},
4645
{policy_validator, <<"overflow">>},
4746
{operator_policy_validator, <<"expires">>},
@@ -101,12 +100,6 @@ validate_policy0(<<"max-length-bytes">>, Value)
101100
validate_policy0(<<"max-length-bytes">>, Value) ->
102101
{error, "~p is not a valid maximum length in bytes", [Value]};
103102

104-
validate_policy0(<<"max-priority">>, Value)
105-
when is_integer(Value), Value >= 0, Value =< ?MAX_SUPPORTED_PRIORITY ->
106-
ok;
107-
validate_policy0(<<"max-priority">>, Value) ->
108-
{error, "~p is not a valid max priority (must be an integer in the 1-~p range)", [Value, ?MAX_SUPPORTED_PRIORITY]};
109-
110103
validate_policy0(<<"queue-mode">>, <<"default">>) ->
111104
ok;
112105
validate_policy0(<<"queue-mode">>, <<"lazy">>) ->

0 commit comments

Comments
 (0)