ver 5
This commit is contained in:
parent
7e82659103
commit
d11c4accca
@ -261,7 +261,8 @@ create_postman(#endpoint{name = Name, config = Config = #{<<"protocol">> := <<"m
|
|||||||
{password, as_string(Password)},
|
{password, as_string(Password)},
|
||||||
{keepalive, Keepalive},
|
{keepalive, Keepalive},
|
||||||
{auto_ack, true},
|
{auto_ack, true},
|
||||||
{connect_timeout, 5},
|
{connect_timeout, 5000},
|
||||||
|
{proto_ver, v5},
|
||||||
{retry_interval, RetryInterval}
|
{retry_interval, RetryInterval}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@ start_link() ->
|
|||||||
init([]) ->
|
init([]) ->
|
||||||
Specs = lists:map(fun child_spec/1, mnesia_endpoint:get_all_endpoints()),
|
Specs = lists:map(fun child_spec/1, mnesia_endpoint:get_all_endpoints()),
|
||||||
|
|
||||||
{ok, {#{strategy => one_for_one, intensity => 1000, period => 3600}, []}}.
|
{ok, {#{strategy => one_for_one, intensity => 1000, period => 3600}, Specs}}.
|
||||||
|
|
||||||
-spec ensured_endpoint_started(Name :: #endpoint{}) -> {ok, Pid :: pid()} | {error, Reason :: any()}.
|
-spec ensured_endpoint_started(Name :: #endpoint{}) -> {ok, Pid :: pid()} | {error, Reason :: any()}.
|
||||||
ensured_endpoint_started(Endpoint = #endpoint{}) ->
|
ensured_endpoint_started(Endpoint = #endpoint{}) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user