chore: use binary type InstanceId as PoolName

This commit is contained in:
JianBo He 2023-03-23 16:03:25 +08:00
parent 9b63bdc1e0
commit 1a466fda0b
1 changed files with 2 additions and 2 deletions

View File

@ -134,8 +134,8 @@ on_start(
false -> false ->
[] []
end, end,
%% use InstaId of binary type as Pool name, which is supported in ecpool.
PoolName = emqx_plugin_libs_pool:pool_name(InstId), PoolName = InstId,
Prepares = parse_prepare_cql(Config), Prepares = parse_prepare_cql(Config),
InitState = #{poolname => PoolName, prepare_statement => #{}}, InitState = #{poolname => PoolName, prepare_statement => #{}},
State = maps:merge(InitState, Prepares), State = maps:merge(InitState, Prepares),