Skip to content

Commit

Permalink
Update cets
Browse files Browse the repository at this point in the history
  • Loading branch information
arcusfelis committed May 9, 2022
1 parent 4fb1fd8 commit 35a4a83
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
4 changes: 2 additions & 2 deletions rebar.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down
2 changes: 1 addition & 1 deletion src/stream_management/mod_stream_management_cets.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
Expand Down

0 comments on commit 35a4a83

Please sign in to comment.