amqp_client.gc_threshold => amqp_client.writer_gc_threshold
References #130.
This commit is contained in:
parent
70e817e40b
commit
1595a86c34
|
|
@ -7,7 +7,7 @@ define PROJECT_ENV
|
|||
[
|
||||
{prefer_ipv6, false},
|
||||
{ssl_options, []},
|
||||
{gc_threshold, 1000000000}
|
||||
{writer_gc_threshold, 1000000000}
|
||||
]
|
||||
endef
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ start_writer(_Sup, direct, [ConnPid, Node, User, VHost, Collector, AmqpParams],
|
|||
VHost, ?CLIENT_CAPABILITIES, Collector, AmqpParams]),
|
||||
RabbitCh;
|
||||
start_writer(Sup, network, [Sock, FrameMax], ConnName, ChNumber, ChPid) ->
|
||||
GCThreshold = application:get_env(amqp_client, gc_threshold, ?DEFAULT_GC_THRESHOLD),
|
||||
GCThreshold = application:get_env(amqp_client, writer_gc_threshold, ?DEFAULT_GC_THRESHOLD),
|
||||
{ok, Writer} = supervisor2:start_child(
|
||||
Sup,
|
||||
{writer, {rabbit_writer, start_link,
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ start_infrastructure_fun(Sup, Conn, network) ->
|
|||
fun (Sock, ConnName) ->
|
||||
{ok, ChMgr} = start_channels_manager(Sup, Conn, ConnName, network),
|
||||
{ok, AState} = rabbit_command_assembler:init(?PROTOCOL),
|
||||
{ok, GCThreshold} = application:get_env(amqp_client, gc_threshold),
|
||||
{ok, GCThreshold} = application:get_env(amqp_client, writer_gc_threshold),
|
||||
{ok, Writer} =
|
||||
supervisor2:start_child(
|
||||
Sup,
|
||||
|
|
|
|||
Loading…
Reference in New Issue