elixir-grpc / grpc-reflection

elixir graph reflection support
Apache License 2.0
9 stars 6 forks source link

Switch from sup per server to single dynamic supervisor #8

Closed mjheilmann closed 9 months ago

mjheilmann commented 9 months ago

The code currently requires each server to be added to the supervision tree manually. This PR changes the structure so that there is a single DynamicSupervisor that a user must add to their supervision tree. The servers then lazy-init their agents on the first call, and then have their state cached afterwards