mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Get rid of db_type warning for mod_vcard_xupdate
This commit is contained in:
parent
af29fb21df
commit
470669fa6b
@ -162,14 +162,6 @@ compute_hash(VCard) ->
|
|||||||
%%====================================================================
|
%%====================================================================
|
||||||
%% Options
|
%% Options
|
||||||
%%====================================================================
|
%%====================================================================
|
||||||
mod_opt_type(db_type) ->
|
|
||||||
fun(_) ->
|
|
||||||
?WARNING_MSG("option 'db_type' for module '~s' has no effect: "
|
|
||||||
"the module doesn't require database anymore; "
|
|
||||||
"feel free to delete any tables related to the module",
|
|
||||||
[?MODULE]),
|
|
||||||
erlang:error(badarg)
|
|
||||||
end;
|
|
||||||
mod_opt_type(O) when O == cache_life_time; O == cache_size ->
|
mod_opt_type(O) when O == cache_life_time; O == cache_size ->
|
||||||
fun (I) when is_integer(I), I > 0 -> I;
|
fun (I) when is_integer(I), I > 0 -> I;
|
||||||
(infinity) -> infinity
|
(infinity) -> infinity
|
||||||
@ -177,4 +169,4 @@ mod_opt_type(O) when O == cache_life_time; O == cache_size ->
|
|||||||
mod_opt_type(O) when O == use_cache; O == cache_missed ->
|
mod_opt_type(O) when O == use_cache; O == cache_missed ->
|
||||||
fun (B) when is_boolean(B) -> B end;
|
fun (B) when is_boolean(B) -> B end;
|
||||||
mod_opt_type(_) ->
|
mod_opt_type(_) ->
|
||||||
[db_type, cache_life_time, cache_size, use_cache, cache_missed].
|
[cache_life_time, cache_size, use_cache, cache_missed].
|
||||||
|
Loading…
Reference in New Issue
Block a user