evadne / etso

Ecto 3 adapter allowing use of Ecto schemas held in ETS tables
https://hexdocs.pm/etso
Apache License 2.0
377 stars 36 forks source link

Reorder children in supervisor.ex #30

Open aenglisc opened 8 months ago

aenglisc commented 8 months ago

Ran into an issue where this happened

"Child :undefined of Supervisor MyRepo.TableSupervisor failed to start\n
** (exit) an exception was raised:\n
** (ArgumentError) unknown registry: MyRepo.TableRegistry\n

Had a quick glance at the code and the way it works now suggests that TableSupervisor is started before TableRegistry however all the calls to TableSupervisor seem to rely on TableRegistry being online.