Permalink
Browse files

make workers temporary

  • Loading branch information...
davidsulc committed Jul 8, 2018
1 parent 79b9351 commit 69630355d08ca48cf2a5b292805cabc169a3adc4
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/pool_toy/pool_man.ex
View
@@ -90,7 +90,8 @@ defmodule PoolToy.PoolMan do
end
defp new_worker(sup, spec) do
{:ok, pid} = PoolToy.WorkerSup.start_worker(sup, spec)
child_spec = Supervisor.child_spec(spec, restart: :temporary)
{:ok, pid} = PoolToy.WorkerSup.start_worker(sup, child_spec)
true = Process.link(pid)
pid
end

0 comments on commit 6963035

Please sign in to comment.