Skip to content

Commit

Permalink
binary_to_atom/1 is not available in Erlang 22.3
Browse files Browse the repository at this point in the history
so use rabbit_data_coercion:to_atom/1.

References 2968

(cherry picked from commit 3eee69a)
  • Loading branch information
michaelklishin committed Apr 13, 2021
1 parent b87d664 commit 84d546f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/rabbit/src/rabbit_quorum_queue.erl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ declare(Q) when ?amqqueue_is_quorum(Q) ->
{ok, A} ->
A;
{error, {too_long, N}} ->
binary_to_atom(ra:new_uid(N))
rabbit_data_coercion:to_atom(ra:new_uid(N))
end,
Id = {RaName, node()},
Nodes = select_quorum_nodes(QuorumSize, rabbit_mnesia:cluster_nodes(all)),
Expand Down

0 comments on commit 84d546f

Please sign in to comment.