From f15f44d12f8f0c0f9bd9bfa899bd29aca2ed4692 Mon Sep 17 00:00:00 2001 From: Vlad Alexandru Ionescu Date: Wed, 19 Jan 2011 21:26:34 +0000 Subject: adding supervision support for direct connection channels --- src/rabbit_channel_sup_sup.erl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/rabbit_channel_sup_sup.erl') diff --git a/src/rabbit_channel_sup_sup.erl b/src/rabbit_channel_sup_sup.erl index fd99af56..e8c25796 100644 --- a/src/rabbit_channel_sup_sup.erl +++ b/src/rabbit_channel_sup_sup.erl @@ -33,7 +33,7 @@ -behaviour(supervisor2). --export([start_link/0, start_channel/2]). +-export([start_link/0, start_channel/3]). -export([init/1]). @@ -42,8 +42,9 @@ -ifdef(use_specs). -spec(start_link/0 :: () -> rabbit_types:ok_pid_or_error()). --spec(start_channel/2 :: (pid(), rabbit_channel_sup:start_link_args()) -> - {'ok', pid(), {pid(), any()}}). +-spec(start_channel/3 :: (pid(), atom(), + rabbit_channel_sup:start_link_args()) -> + {'ok', pid(), {pid(), any()}}). -endif. @@ -52,8 +53,8 @@ start_link() -> supervisor2:start_link(?MODULE, []). -start_channel(Pid, Args) -> - supervisor2:start_child(Pid, [Args]). +start_channel(Pid, Type, Args) -> + supervisor2:start_child(Pid, [Type, Args]). %%---------------------------------------------------------------------------- -- cgit v1.2.1