mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Fix syntax not recognized by older erlang
This commit is contained in:
parent
5b0f0d8352
commit
45bbbd0284
1 changed files with 3 additions and 2 deletions
|
@ -443,12 +443,13 @@ delete_group(Host, Group) ->
|
||||||
|
|
||||||
get_groups_opts_cached(Host1, Group1, Cache) ->
|
get_groups_opts_cached(Host1, Group1, Cache) ->
|
||||||
{Host, Group} = split_grouphost(Host1, Group1),
|
{Host, Group} = split_grouphost(Host1, Group1),
|
||||||
|
Key = {Group, Host},
|
||||||
case Cache of
|
case Cache of
|
||||||
#{{Group, Host} := Opts} ->
|
#{Key := Opts} ->
|
||||||
{Opts, Cache};
|
{Opts, Cache};
|
||||||
_ ->
|
_ ->
|
||||||
Opts = get_group_opts_int(Host, Group),
|
Opts = get_group_opts_int(Host, Group),
|
||||||
{Opts, Cache#{{Group, Host} => Opts}}
|
{Opts, Cache#{Key => Opts}}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
get_group_opts(Host1, Group1) ->
|
get_group_opts(Host1, Group1) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue