Skip to content

Commit

Permalink
Fixing issues in mod_inbox_backend.erl
Browse files Browse the repository at this point in the history
  • Loading branch information
Janusz Jakubiec authored and Janusz Jakubiec committed Oct 22, 2021
1 parent ad71add commit 93f2c49
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/inbox/mod_inbox_backend.erl
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@
get_inbox_unread/2,
get_entry_properties/2,
set_entry_properties/3,
reset_unread/3
]).
reset_unread/3]).

-define(MAIN_MODULE, mod_inbox).

-callback init(Host, Opts) -> ok when
Host :: mongooseim:host_type(),
-callback init(HostType, Opts) -> ok when
HostType :: mongooseim:host_type(),
Opts :: list().

-callback get_inbox(HostType, LUser, LServer, Params) -> mod_index:get_inbox_res() when
Expand Down Expand Up @@ -77,8 +76,8 @@
Params :: mod_index:entry_properties(),
Ret :: mod_index:entry_properties() | {error, binary()}.

-spec init(Host, Opts) -> ok when
Host :: mongooseim:host_type(),
-spec init(HostType, Opts) -> ok when
HostType :: mongooseim:host_type(),
Opts :: list().
init(HostType, Opts) ->
mongoose_backend:init_per_host_type(HostType, ?MAIN_MODULE, callback_funs(), Opts),
Expand Down

0 comments on commit 93f2c49

Please sign in to comment.