this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add SimServer name registration

garrison f088b8b4 fbd43f8b

+8 -2
+8 -2
lib/trinity/sim_gen.ex
··· 11 11 do_start(module, init_arg, options, false) 12 12 end 13 13 14 - defp do_start(module, init_arg, _options, link?) do 14 + defp do_start(module, init_arg, options, link?) do 15 15 parent_pid = self() 16 16 17 17 Scheduler.spawn_and_yield(fn -> ··· 19 19 end, link?) 20 20 21 21 receive_yield do 22 - {:ack, pid} -> {:ok, pid} 22 + {:ack, pid} -> 23 + case Keyword.fetch(options, :name) do 24 + # Register the server's name if provided 25 + {:ok, name} -> SimProcess.register(pid, name) 26 + :error -> :noop 27 + end 28 + {:ok, pid} 23 29 # TODO: :error 24 30 end 25 31 end