summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2018-05-14 12:37:39 -0300
committerMichael Klishin <michael@clojurewerkz.org>2018-05-14 12:37:39 -0300
commit44500061d465a8552a07af5a3a519d2263f94f8a (patch)
tree9f4d0f4a06a9b79e4a422f852fea1631644fbb76 /src
parentf5aa1fbe043395806d9b9ed8780892924431466c (diff)
downloadrabbitmq-server-git-44500061d465a8552a07af5a3a519d2263f94f8a.tar.gz
Use the constant across the board
Part of #1590.
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_policies.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_policies.erl b/src/rabbit_policies.erl
index 0faad7259d..3ed6e33279 100644
--- a/src/rabbit_policies.erl
+++ b/src/rabbit_policies.erl
@@ -102,10 +102,10 @@ 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 =< 255 ->
+ 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-255 range)", [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;