by Ossi Hanhinen, @ohanhi
with the support of Futurice 💚.
Licensed under CC BY 4.0.
| {_, port} = \ | |
| GenServer.whereis(EventStore.Notifications.Listener.Postgrex)\ | |
| |> :sys.get_state()\ | |
| |> Map.get(:pid)\ | |
| |> :sys.get_state()\ | |
| |> Map.get(:mod_state)\ | |
| |> Map.get(:protocol)\ | |
| |> Map.get(:sock) | |
| :erlang.port_close(port) |