This commit is contained in:
anlicheng 2023-07-24 11:34:37 +08:00
parent 7e82659103
commit d11c4accca
2 changed files with 3 additions and 2 deletions

View File

@ -261,7 +261,8 @@ create_postman(#endpoint{name = Name, config = Config = #{<<"protocol">> := <<"m
{password, as_string(Password)},
{keepalive, Keepalive},
{auto_ack, true},
{connect_timeout, 5},
{connect_timeout, 5000},
{proto_ver, v5},
{retry_interval, RetryInterval}
],

View File

@ -17,7 +17,7 @@ start_link() ->
init([]) ->
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()}.
ensured_endpoint_started(Endpoint = #endpoint{}) ->