Skip to content

Commit e66c890

Browse files
Follow-up to 08168de
References #1590. [#157380396] (cherry picked from commit 9f9a414) Conflicts: src/rabbit_policies.erl
1 parent 4772c62 commit e66c890

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
@@ -40,7 +40,6 @@ register() ->
4040
{policy_validator, <<"expires">>},
4141
{policy_validator, <<"max-length">>},
4242
{policy_validator, <<"max-length-bytes">>},
43-
{policy_validator, <<"max-priority">>},
4443
{policy_validator, <<"queue-mode">>}]],
4544
ok.
4645

@@ -91,12 +90,6 @@ validate_policy0(<<"max-length-bytes">>, Value)
9190
validate_policy0(<<"max-length-bytes">>, Value) ->
9291
{error, "~p is not a valid maximum length in bytes", [Value]};
9392

94-
validate_policy0(<<"max-priority">>, Value)
95-
when is_integer(Value), Value >= 0, Value =< ?MAX_SUPPORTED_PRIORITY ->
96-
ok;
97-
validate_policy0(<<"max-priority">>, Value) ->
98-
{error, "~p is not a valid max priority (must be an integer in the 1-~p range)", [Value, ?MAX_SUPPORTED_PRIORITY]};
99-
10093
validate_policy0(<<"queue-mode">>, <<"default">>) ->
10194
ok;
10295
validate_policy0(<<"queue-mode">>, <<"lazy">>) ->

0 commit comments

Comments
 (0)