Skip to content

Commit

Permalink
Use a unique ID for child spec
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenvanvliet committed Nov 29, 2021
1 parent 6fbbe06 commit 0b4108b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/subscriptions_transport_ws/socket.ex
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ defmodule SubscriptionsTransportWS.Socket do
end
end

def __child_spec__(_module, _opts, _socket_options) do
def __child_spec__(module, _opts, _socket_options) do
# Nothing to do here, so noop.
%{id: Task, start: {Task, :start_link, [fn -> :ok end]}, restart: :transient}
%{id: {__MODULE__, module}, start: {Task, :start_link, [fn -> :ok end]}, restart: :transient}
end

def __connect__(module, socket, socket_options) do
Expand Down

0 comments on commit 0b4108b

Please sign in to comment.