@@ -41,7 +41,6 @@ register() ->
41
41
{policy_validator , <<" expires" >>},
42
42
{policy_validator , <<" max-length" >>},
43
43
{policy_validator , <<" max-length-bytes" >>},
44
- {policy_validator , <<" max-priority" >>},
45
44
{policy_validator , <<" queue-mode" >>},
46
45
{policy_validator , <<" overflow" >>},
47
46
{operator_policy_validator , <<" expires" >>},
@@ -101,12 +100,6 @@ validate_policy0(<<"max-length-bytes">>, Value)
101
100
validate_policy0 (<<" max-length-bytes" >>, Value ) ->
102
101
{error , " ~p is not a valid maximum length in bytes" , [Value ]};
103
102
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
-
110
103
validate_policy0 (<<" queue-mode" >>, <<" default" >>) ->
111
104
ok ;
112
105
validate_policy0 (<<" queue-mode" >>, <<" lazy" >>) ->
0 commit comments