diff --git a/rebar.config b/rebar.config index 9bcfc6cdfc..d2739d26b5 100644 --- a/rebar.config +++ b/rebar.config @@ -78,7 +78,7 @@ {segmented_cache, "0.1.1"}, {worker_pool, "6.0.1"}, {worker_pool, "6.0.0"}, - {cets, {git, "https://github.com/arcusfelis/cets.git", {branch, "main"}}}, + {cets, {git, "https://github.com/esl/cets.git", {branch, "rebased"}}}, %%% HTTP tools {cowboy, "2.9.0"}, diff --git a/rebar.lock b/rebar.lock index f39ecafae8..e6cf82bb41 100644 --- a/rebar.lock +++ b/rebar.lock @@ -7,8 +7,8 @@ {<<"cache_tab">>,{pkg,<<"cache_tab">>,<<"1.0.29">>},0}, {<<"certifi">>,{pkg,<<"certifi">>,<<"2.3.1">>},2}, {<<"cets">>, - {git,"https://github.com/arcusfelis/cets.git", - {ref,"6f8b79889844bf2f3778104bdadfba5ee1efc5fc"}}, + {git,"https://github.com/esl/cets.git", + {ref,"ebe123a44c35ebbe9ab06c453840bac45467c510"}}, 0}, {<<"cowboy">>,{pkg,<<"cowboy">>,<<"2.9.0">>},0}, {<<"cowboy_swagger">>,{pkg,<<"cowboy_swagger">>,<<"2.5.0">>},0}, diff --git a/src/stream_management/mod_stream_management_cets.erl b/src/stream_management/mod_stream_management_cets.erl index 49fe98f7ef..1278bfafdf 100644 --- a/src/stream_management/mod_stream_management_cets.erl +++ b/src/stream_management/mod_stream_management_cets.erl @@ -39,7 +39,7 @@ maybe_init_stale_h(_, _) -> ok. SMID :: mod_stream_management:smid(), SID :: ejabberd_sm:sid(). register_smid(_HostType, SMID, SID) -> - cets:insert(?TABLE, [{{sid, SID}, SMID}, {{smid, SMID}, SID}]). + cets:insert_many(?TABLE, [{{sid, SID}, SMID}, {{smid, SMID}, SID}]). -spec unregister_smid(mongooseim:host_type(), ejabberd_sm:sid()) -> {ok, SMID :: mod_stream_management:smid()} | {error, smid_not_found}.