fix(limiter): improve the default configuration

This commit is contained in:
firest 2023-05-24 14:43:06 +08:00
parent cfd101c770
commit be2dfa51df
1 changed files with 4 additions and 4 deletions

View File

@ -181,7 +181,7 @@ fields(client_opts) ->
boolean(), boolean(),
#{ #{
desc => ?DESC(divisible), desc => ?DESC(divisible),
default => false, default => true,
importance => ?IMPORTANCE_HIDDEN importance => ?IMPORTANCE_HIDDEN
} }
)}, )},
@ -190,7 +190,7 @@ fields(client_opts) ->
emqx_schema:duration(), emqx_schema:duration(),
#{ #{
desc => ?DESC(max_retry_time), desc => ?DESC(max_retry_time),
default => <<"10s">>, default => <<"1h">>,
importance => ?IMPORTANCE_HIDDEN importance => ?IMPORTANCE_HIDDEN
} }
)}, )},
@ -280,8 +280,8 @@ default_client_config() ->
initial => 0, initial => 0,
low_watermark => 0, low_watermark => 0,
burst => 0, burst => 0,
divisible => false, divisible => true,
max_retry_time => timer:seconds(10), max_retry_time => timer:hours(1),
failure_strategy => force failure_strategy => force
}. }.