mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Allow dynamic node options on sql backends
This commit is contained in:
parent
e4054aab79
commit
3162ec0d66
@ -287,7 +287,7 @@ raw_to_node(Host, {Node, Parent, Type, Nidx}) ->
|
||||
Module = misc:binary_to_atom(<<"node_", Type/binary, "_sql">>),
|
||||
StdOpts = Module:options(),
|
||||
lists:foldl(fun ({Key, Value}, Acc) ->
|
||||
lists:keyreplace(Key, 1, Acc, {Key, Value})
|
||||
lists:keystore(Key, 1, Acc, {Key, Value})
|
||||
end,
|
||||
StdOpts, DbOpts);
|
||||
_ ->
|
||||
|
Loading…
Reference in New Issue
Block a user