./ct_report/coverage/mongoose_wpool_elastic.COVER.html

1 -module(mongoose_wpool_elastic).
2 -behaviour(mongoose_wpool).
3
4 -export([init/0]).
5 -export([start/4]).
6 -export([stop/2]).
7
8 %% --------------------------------------------------------------
9 %% mongoose_wpool callbacks
10 init() ->
11
:-(
tirerl:start(),
12
:-(
ok.
13
14 start(HostType, Tag, WpoolOptsIn, #{host := ElasticHost, port := Port}) ->
15
:-(
ProcName = mongoose_wpool:make_pool_name(elastic, HostType, Tag),
16
:-(
Opts = [{host, list_to_binary(ElasticHost)}, {port, Port}],
17
:-(
WPoolOptions = [{overrun_warning, infinity},
18 {overrun_handler, {error_logger, warning_report}},
19 {worker, {tirerl_worker, Opts}}
20 | WpoolOptsIn],
21
:-(
mongoose_wpool:start_sup_pool(elastic, ProcName, WPoolOptions).
22
23 stop(_, _) ->
24
:-(
ok.
25
Line Hits Source