Skip to content

Commit afe052f

Browse files
Merge branch 'stable'
2 parents 3e6d1ad + b822e85 commit afe052f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/rabbit_queue_location_validator.erl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ module(#amqqueue{} = Q) ->
5454
undefined -> no_location_strategy;
5555
Mode -> module(Mode)
5656
end;
57-
5857
module(Strategy) when is_binary(Strategy) ->
5958
case rabbit_registry:binary_to_type(Strategy) of
6059
{error, not_found} -> no_location_strategy;
@@ -68,4 +67,6 @@ module(Strategy) when is_binary(Strategy) ->
6867
_ ->
6968
no_location_strategy
7069
end
71-
end.
70+
end;
71+
module(Strategy) ->
72+
module(rabbit_data_coercion:to_binary(Strategy)).

0 commit comments

Comments
 (0)