You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes I need to restart this connection with an updated state (a restful endpoint changes the configuration). If this runs again, I'll get an {:error, {:already_started, #PID<0.746.0>}}}
Is there an idiomatic way to (re)start a connection? I want it to start if one by that client_id does not yet exist. And restart if one does.
The text was updated successfully, but these errors were encountered:
(I'd love to ask questions on the elixir-lang#tortoise slack channel, but that seems pretty dead)
This question probably shows my naivety with OTP as much as anything. I'm using the Tortoise.Supervisor to start my connections (I have multiple) as described at (https://hexdocs.pm/tortoise/connection_supervision.html#the-tortoise-supervisor). My code looks like:
Sometimes I need to restart this connection with an updated state (a restful endpoint changes the configuration). If this runs again, I'll get an {:error, {:already_started, #PID<0.746.0>}}}
Is there an idiomatic way to (re)start a connection? I want it to start if one by that client_id does not yet exist. And restart if one does.
The text was updated successfully, but these errors were encountered: