Skip to content

Commit

Permalink
fix key type
Browse files Browse the repository at this point in the history
  • Loading branch information
abc3 committed Oct 23, 2023
1 parent 91366f3 commit 29b6d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/supavisor/protocol/server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ defmodule Supavisor.Protocol.Server do
def backend_key_data() do
pid = System.unique_integer([:positive, :monotonic])
key = :crypto.strong_rand_bytes(4)
payload = <<pid::integer-32, key::integer-32>>
payload = <<pid::integer-32, key::binary>>
len = IO.iodata_length(payload) + 4
{<<?K, len::32>>, payload}
end
Expand Down

0 comments on commit 29b6d70

Please sign in to comment.