Open dantswain opened 3 years ago
When starting the scheduler in Elixir 1.11 I get this:
** (Mix) Could not start application my_app: MyApp.TestApplication.start(:normal, []) returned an error: shutdown: failed to start child: MyApp.TestScheduler ** (EXIT) shutdown: failed to start child: Registry ** (EXIT) an exception was raised: ** (ArgumentError) expected :name to be an atom, got: {:via, Swarm, MyApp.TestScheduler.TaskRegistry} (elixir 1.11.0) lib/registry.ex:331: Registry.start_link/1 (quantum 3.3.0) lib/quantum/task_registry.ex:15: Quantum.TaskRegistry.start_link/1 (stdlib 3.13.2) supervisor.erl:385: :supervisor.do_start_child_i/3 (stdlib 3.13.2) supervisor.erl:371: :supervisor.do_start_child/2 (stdlib 3.13.2) supervisor.erl:355: anonymous fn/3 in :supervisor.start_children/2 (stdlib 3.13.2) supervisor.erl:1171: :supervisor.children_map/4 (stdlib 3.13.2) supervisor.erl:321: :supervisor.init_children/2 (stdlib 3.13.2) gen_server.erl:417: :gen_server.init_it/2
It appears that starting registries with via has been removed: https://github.com/elixir-lang/elixir/pull/8850
via
I'm not sure which version of Elixir this change first appeared in, I'm running 1.11.0.
1.11.0
When starting the scheduler in Elixir 1.11 I get this:
It appears that starting registries with
via
has been removed: https://github.com/elixir-lang/elixir/pull/8850I'm not sure which version of Elixir this change first appeared in, I'm running
1.11.0
.