Преглед изворни кода

chore: use binary type InstanceId as PoolName

JianBo He пре 2 година
родитељ
комит
1a466fda0b
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      lib-ee/emqx_ee_connector/src/emqx_ee_connector_cassa.erl

+ 2 - 2
lib-ee/emqx_ee_connector/src/emqx_ee_connector_cassa.erl

@@ -134,8 +134,8 @@ on_start(
             false ->
             false ->
                 []
                 []
         end,
         end,
-
-    PoolName = emqx_plugin_libs_pool:pool_name(InstId),
+    %% use InstaId of binary type as Pool name, which is supported in ecpool.
+    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),