diff options
author | David Wragg <david@rabbitmq.com> | 2011-01-14 13:04:46 +0000 |
---|---|---|
committer | David Wragg <david@rabbitmq.com> | 2011-01-14 13:04:46 +0000 |
commit | 6d7d7eeb63d12ed41e378646dc6835f9160c8464 (patch) | |
tree | 2efc4ea43966319149a37f2860820d49264df532 /src/rabbit_channel_sup.erl | |
parent | 42c352fc5069f5d3ef4a9462d51ad83ad874d7a5 (diff) | |
parent | 2450a19f4341c7cea84960d7e2ef8fd26b6eeb07 (diff) | |
download | rabbitmq-server-6d7d7eeb63d12ed41e378646dc6835f9160c8464.tar.gz |
Merge default into bug23568
Diffstat (limited to 'src/rabbit_channel_sup.erl')
-rw-r--r-- | src/rabbit_channel_sup.erl | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/rabbit_channel_sup.erl b/src/rabbit_channel_sup.erl index a36253a0..9f50176d 100644 --- a/src/rabbit_channel_sup.erl +++ b/src/rabbit_channel_sup.erl @@ -50,7 +50,7 @@ rabbit_channel:channel_number(), non_neg_integer(), pid(), rabbit_types:user(), rabbit_types:vhost(), pid()}). --spec(start_link/1 :: (start_link_args()) -> {'ok', pid(), pid()}). +-spec(start_link/1 :: (start_link_args()) -> {'ok', pid(), {pid(), any()}}). -endif. @@ -72,13 +72,8 @@ start_link({Protocol, Sock, Channel, FrameMax, ReaderPid, User, VHost, [Channel, ReaderPid, WriterPid, User, VHost, Collector, start_limiter_fun(SupPid)]}, intrinsic, ?MAX_WAIT, worker, [rabbit_channel]}), - {ok, FramingChannelPid} = - supervisor2:start_child( - SupPid, - {framing_channel, {rabbit_framing_channel, start_link, - [ReaderPid, ChannelPid, Protocol]}, - intrinsic, ?MAX_WAIT, worker, [rabbit_framing_channel]}), - {ok, SupPid, FramingChannelPid}. + {ok, AState} = rabbit_command_assembler:init(Protocol), + {ok, SupPid, {ChannelPid, AState}}. %%---------------------------------------------------------------------------- |