Skip to content

Commit

Permalink
Fix leaky messages in Xandra.Cluster.Pool (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide authored Oct 13, 2023
1 parent 681702a commit 6186361
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xandra/cluster/pool.ex
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ defmodule Xandra.Cluster.Pool do
end

def handle_event(:internal, :flush_checkout_queue, :has_connected_once, %__MODULE__{} = data) do
checkout_queue(queue: queue) = data.checkout_queue
{checkout_queue(queue: queue), data} = get_and_update_in(data.checkout_queue, &{&1, nil})

{reply_actions, data} =
Enum.map_reduce(:queue.to_list(queue), data, fn from, data ->
Expand Down

0 comments on commit 6186361

Please sign in to comment.