We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79b9351 commit 6963035Copy full SHA for 6963035
lib/pool_toy/pool_man.ex
@@ -90,7 +90,8 @@ defmodule PoolToy.PoolMan do
90
end
91
92
defp new_worker(sup, spec) do
93
- {:ok, pid} = PoolToy.WorkerSup.start_worker(sup, spec)
+ child_spec = Supervisor.child_spec(spec, restart: :temporary)
94
+ {:ok, pid} = PoolToy.WorkerSup.start_worker(sup, child_spec)
95
true = Process.link(pid)
96
pid
97
0 commit comments