We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4772c62 commit e66c890Copy full SHA for e66c890
src/rabbit_policies.erl
@@ -40,7 +40,6 @@ register() ->
40
{policy_validator, <<"expires">>},
41
{policy_validator, <<"max-length">>},
42
{policy_validator, <<"max-length-bytes">>},
43
- {policy_validator, <<"max-priority">>},
44
{policy_validator, <<"queue-mode">>}]],
45
ok.
46
@@ -91,12 +90,6 @@ validate_policy0(<<"max-length-bytes">>, Value)
91
90
validate_policy0(<<"max-length-bytes">>, Value) ->
92
{error, "~p is not a valid maximum length in bytes", [Value]};
93
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
-
100
validate_policy0(<<"queue-mode">>, <<"default">>) ->
101
ok;
102
validate_policy0(<<"queue-mode">>, <<"lazy">>) ->
0 commit comments