chore(connector): ensure alllication start in mysql connector

This commit is contained in:
zhanghongtong 2021-06-15 18:51:53 +08:00 committed by Rory Z
parent b4305a79eb
commit 949e8348fc
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ on_start(InstId, #{<<"server">> := {Host, Port},
<<"auto_reconnect">> := AutoReconn, <<"auto_reconnect">> := AutoReconn,
<<"pool_size">> := PoolSize} = Config) -> <<"pool_size">> := PoolSize} = Config) ->
logger:info("starting mysql connector: ~p, config: ~p", [InstId, Config]), logger:info("starting mysql connector: ~p, config: ~p", [InstId, Config]),
{ok, _} = application:ensure_all_started(mysql),
SslOpts = case maps:get(<<"ssl">>, Config) of SslOpts = case maps:get(<<"ssl">>, Config) of
true -> true ->
[{ssl, [{server_name_indication, disable} | [{ssl, [{server_name_indication, disable} |