Skip to content

Commit

Permalink
Fix dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
arcusfelis committed Oct 29, 2021
1 parent ab1abe5 commit 204ffb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ejabberd_sm.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ get_cached_unique_count() ->
sm_backend() ->
persistent_term:get(sm_backend_module, ejabberd_sm_mnesia).

-spec store_backend(backend_type()) -> backend().
-spec store_backend(backend_type()) -> ok.
store_backend(Backend) ->
BackendModule = list_to_atom("ejabberd_sm_" ++ atom_to_list(Backend)),
persistent_term:put(sm_backend_module, BackendModule).

0 comments on commit 204ffb7

Please sign in to comment.