aboutsummaryrefslogtreecommitdiffstats
path: root/test/supervisor_separate.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-05-09 10:43:25 +0200
committerLoïc Hoguin <[email protected]>2019-05-09 10:47:15 +0200
commit3ea575d8682560fc02d5583cbf2837e2f2f43e9f (patch)
treea20024277c5bad93fd05d9a32013ecabfeddd485 /test/supervisor_separate.erl
parente92171a8f80755dad795691ad9e07807212d0d1c (diff)
downloadranch-3ea575d8682560fc02d5583cbf2837e2f2f43e9f.tar.gz
ranch-3ea575d8682560fc02d5583cbf2837e2f2f43e9f.tar.bz2
ranch-3ea575d8682560fc02d5583cbf2837e2f2f43e9f.zip
Remove Socket argument from ranch_protocol:start_link
Diffstat (limited to 'test/supervisor_separate.erl')
-rw-r--r--test/supervisor_separate.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/supervisor_separate.erl b/test/supervisor_separate.erl
index 5f1f326..f96c7e4 100644
--- a/test/supervisor_separate.erl
+++ b/test/supervisor_separate.erl
@@ -2,13 +2,13 @@
-behavior(supervisor).
-behavior(ranch_protocol).
--export([start_link/4]).
+-export([start_link/3]).
-export([init/1]).
-start_link(Ref, Socket, Transport, Opts) ->
+start_link(Ref, Transport, Opts) ->
{ok, SupPid} = supervisor:start_link(?MODULE, []),
{ok, ConnPid} = supervisor:start_child(SupPid,
- {echo_protocol, {echo_protocol, start_link, [Ref, Socket, Transport, Opts]},
+ {echo_protocol, {echo_protocol, start_link, [Ref, Transport, Opts]},
temporary, 5000, worker, [echo_protocol]}),
{ok, SupPid, ConnPid}.