Transport.connect/7 is deprecated
This commit is contained in:
parent
b0198d3435
commit
8caa6cf91d
|
@ -31,7 +31,12 @@ def init(%Plug.Conn{method: "GET"} = conn, {endpoint, handler, transport}) do
|
||||||
|
|
||||||
case conn do
|
case conn do
|
||||||
%{halted: false} = conn ->
|
%{halted: false} = conn ->
|
||||||
case Transport.connect(endpoint, handler, transport, __MODULE__, nil, conn.params) do
|
case Transport.connect(%{
|
||||||
|
endpoint: endpoint,
|
||||||
|
transport: transport,
|
||||||
|
options: [serializer: nil],
|
||||||
|
params: conn.params
|
||||||
|
}) do
|
||||||
{:ok, socket} ->
|
{:ok, socket} ->
|
||||||
{:ok, conn, {__MODULE__, {socket, opts}}}
|
{:ok, conn, {__MODULE__, {socket, opts}}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue