Skip to content

Commit a1e6b92

Browse files
OTP 22 compatibility
1 parent 41827fa commit a1e6b92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbit/src/pid_recomposition.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ from_binary(Bin) ->
4141
end,
4242
<<ID:32/integer, Serial:32/integer, Creation:32/integer>> = Rest2,
4343
#{
44-
node => binary_to_atom(Node),
44+
node => binary_to_atom(Node, utf8),
4545
id => ID,
4646
serial => Serial,
4747
creation => Creation
4848
}.
4949

5050
-spec to_binary(#{atom() => any()}) -> binary().
5151
to_binary(#{node := Node, id := ID, serial := Serial, creation := Creation}) ->
52-
BinNode = atom_to_binary(Node),
52+
BinNode = atom_to_binary(Node, utf8),
5353
NodeLen = byte_size(BinNode),
5454
<<?TTB_PREFIX:8/unsigned, ?NEW_PID_EXT:8/unsigned, ?ATOM_UTF8_EXT:8/unsigned, NodeLen:16/unsigned, BinNode/binary, ID:32, Serial:32, Creation:32>>.
5555

0 commit comments

Comments
 (0)