refactor(http_bridge): use more readable type for pool_type

This commit is contained in:
Zaiming (Stone) Shi 2023-11-08 18:21:15 +01:00
parent 40c2ca134d
commit df96798c53
1 changed files with 1 additions and 9 deletions

View File

@ -46,14 +46,6 @@
-export([validate_method/1, join_paths/2]). -export([validate_method/1, join_paths/2]).
-type connect_timeout() :: emqx_schema:duration() | infinity.
-type pool_type() :: random | hash.
-reflect_type([
connect_timeout/0,
pool_type/0
]).
-define(DEFAULT_PIPELINE_SIZE, 100). -define(DEFAULT_PIPELINE_SIZE, 100).
-define(DEFAULT_REQUEST_TIMEOUT_MS, 30_000). -define(DEFAULT_REQUEST_TIMEOUT_MS, 30_000).
@ -89,7 +81,7 @@ fields(config) ->
)}, )},
{pool_type, {pool_type,
sc( sc(
pool_type(), hoconsc:enum([random, hash]),
#{ #{
default => random, default => random,
desc => ?DESC("pool_type") desc => ?DESC("pool_type")