diff options
| author | Michael Klishin <michael@clojurewerkz.org> | 2018-05-14 15:44:25 -0300 |
|---|---|---|
| committer | Michael Klishin <michael@clojurewerkz.org> | 2018-05-14 15:44:25 -0300 |
| commit | 9f9a414bef538f86f64b79eb46f60cd5d2c0483a (patch) | |
| tree | 44def7263afb566873618d81c69af69e38f223e2 | |
| parent | 08168de6b0c3c4d7f6429f2c3d098e5080ff7b1a (diff) | |
| download | rabbitmq-server-git-9f9a414bef538f86f64b79eb46f60cd5d2c0483a.tar.gz | |
Follow-up to 08168de6b0c3c4d7f6429f2c3d098e5080ff7b1a
References #1590.
[#157380396]
| -rw-r--r-- | src/rabbit_policies.erl | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/rabbit_policies.erl b/src/rabbit_policies.erl index 3ed6e33279..43f59f17d5 100644 --- a/src/rabbit_policies.erl +++ b/src/rabbit_policies.erl @@ -41,7 +41,6 @@ register() -> {policy_validator, <<"expires">>}, {policy_validator, <<"max-length">>}, {policy_validator, <<"max-length-bytes">>}, - {policy_validator, <<"max-priority">>}, {policy_validator, <<"queue-mode">>}, {policy_validator, <<"overflow">>}, {operator_policy_validator, <<"expires">>}, @@ -101,12 +100,6 @@ validate_policy0(<<"max-length-bytes">>, Value) validate_policy0(<<"max-length-bytes">>, Value) -> {error, "~p is not a valid maximum length in bytes", [Value]}; -validate_policy0(<<"max-priority">>, Value) - when is_integer(Value), Value >= 0, Value =< ?MAX_SUPPORTED_PRIORITY -> - ok; -validate_policy0(<<"max-priority">>, Value) -> - {error, "~p is not a valid max priority (must be an integer in the 1-~p range)", [Value, ?MAX_SUPPORTED_PRIORITY]}; - validate_policy0(<<"queue-mode">>, <<"default">>) -> ok; validate_policy0(<<"queue-mode">>, <<"lazy">>) -> |
