summaryrefslogtreecommitdiff
path: root/src/rabbit_channel_sup_sup.erl
diff options
context:
space:
mode:
authorVlad Alexandru Ionescu <vlad@rabbitmq.com>2011-01-19 21:26:34 +0000
committerVlad Alexandru Ionescu <vlad@rabbitmq.com>2011-01-19 21:26:34 +0000
commitf15f44d12f8f0c0f9bd9bfa899bd29aca2ed4692 (patch)
tree2507e1bf6f11d668a676dd6dbf14ddd2ba3fff7e /src/rabbit_channel_sup_sup.erl
parent1161a528c4917db800492aa9cf241701aa0134b2 (diff)
downloadrabbitmq-server-f15f44d12f8f0c0f9bd9bfa899bd29aca2ed4692.tar.gz
adding supervision support for direct connection channels
Diffstat (limited to 'src/rabbit_channel_sup_sup.erl')
-rw-r--r--src/rabbit_channel_sup_sup.erl11
1 files changed, 6 insertions, 5 deletions
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]).
%%----------------------------------------------------------------------------