chore: adds auto_reconnect for ecpool

This commit is contained in:
Dennis Zhuang 2023-07-21 19:16:58 +08:00 committed by firest
parent 2ea903c5ac
commit cd9d5f287e
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,8 @@
-define(DEFAULT_TIMESTAMP_TMPL, "${timestamp}").
-define(AUTO_RECONNECT_S, 1).
%% -------------------------------------------------------------------------------------------------
%% resource callback
callback_mode() -> always_sync.
@ -261,6 +263,7 @@ client_config(
{pool_size, erlang:system_info(schedulers)},
{pool, InstId},
{pool_type, random},
{auto_reconnect, ?AUTO_RECONNECT_S},
{timeunit, maps:get(precision, Config, ms)}
] ++ protocol_config(Config).