Skip to content

Commit

Permalink
Resolve a conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Oct 3, 2022
1 parent bb44082 commit 04e6f19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
7 changes: 1 addition & 6 deletions deps/rabbitmq_stream/src/rabbit_stream.erl
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,7 @@ emit_publisher_info_local(VHost, Items, Ref, AggregatorPid) ->

list(VHost) ->
[Client
<<<<<<< HEAD
|| {_, ListSup, _, _}
<- supervisor2:which_children(rabbit_stream_sup),
=======
|| {_, ListSup, _, _} <- supervisor:which_children(rabbit_stream_sup),
>>>>>>> 0c1eeab92b (Fix keys for route and partitions responses)
|| {_, ListSup, _, _} <- supervisor2:which_children(rabbit_stream_sup),
{_, RanchEmbeddedSup, supervisor, _}
<- supervisor2:which_children(ListSup),
{{ranch_listener_sup, _}, RanchListSup, _, _}
Expand Down
26 changes: 1 addition & 25 deletions deps/rabbitmq_stream/src/rabbit_stream_connection_sup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,7 @@
start_link(Ref, Transport, Opts) ->
{ok, SupPid} = supervisor2:start_link(?MODULE, []),
{ok, KeepaliveSup} =
<<<<<<< HEAD
supervisor2:start_child(SupPid,
{rabbit_stream_keepalive_sup,
{rabbit_stream_connection_sup,
start_keepalive_link, []},
intrinsic,
infinity,
supervisor,
[rabbit_keepalive_sup]}),
{ok, ReaderPid} =
supervisor2:start_child(SupPid,
{rabbit_stream_reader,
{rabbit_stream_reader, start_link,
[KeepaliveSup, Transport, Ref, Opts]},
intrinsic,
?WORKER_WAIT,
worker,
[rabbit_stream_reader]}),
=======
supervisor:start_child(SupPid,
#{id => rabbit_stream_keepalive_sup,
start =>
{rabbit_stream_connection_sup,
Expand All @@ -58,7 +39,7 @@ start_link(Ref, Transport, Opts) ->
type => supervisor,
modules => [rabbit_keepalive_sup]}),
{ok, ReaderPid} =
supervisor:start_child(SupPid,
supervisor2:start_child(SupPid,
#{id => rabbit_stream_reader,
start =>
{rabbit_stream_reader, start_link,
Expand All @@ -68,7 +49,6 @@ start_link(Ref, Transport, Opts) ->
shutdown => ?WORKER_WAIT,
type => worker,
modules => [rabbit_stream_reader]}),
>>>>>>> 0c1eeab92b (Fix keys for route and partitions responses)
{ok, SupPid, ReaderPid}.

start_keepalive_link() ->
Expand All @@ -77,13 +57,9 @@ start_keepalive_link() ->
%%----------------------------------------------------------------------------

init([]) ->
<<<<<<< HEAD
{ok, {{one_for_all, 0, 1}, []}}.
=======
{ok,
{#{strategy => one_for_all,
intensity => 0,
period => 1,
auto_shutdown => any_significant},
[]}}.
>>>>>>> 0c1eeab92b (Fix keys for route and partitions responses)

0 comments on commit 04e6f19

Please sign in to comment.