mirror of
https://github.com/processone/ejabberd
synced 2025-10-06 03:50:15 +02:00
Specify type of second terminate/2 parameter
This commit is contained in:
parent
0bdcafdb02
commit
382c6ce1fb
2 changed files with 2 additions and 2 deletions
|
@ -375,7 +375,7 @@ handle_info(Info, State) ->
|
||||||
?ERROR_MSG("Got unexpected info: ~p", [Info]),
|
?ERROR_MSG("Got unexpected info: ~p", [Info]),
|
||||||
{noreply, State}.
|
{noreply, State}.
|
||||||
|
|
||||||
-spec terminate(normal | shutdown | {shutdown, _} | _, _) -> ok.
|
-spec terminate(normal | shutdown | {shutdown, _} | _, state()) -> ok.
|
||||||
|
|
||||||
terminate(Reason, #state{server_host = ServerHost, host = Host}) ->
|
terminate(Reason, #state{server_host = ServerHost, host = Host}) ->
|
||||||
?DEBUG("Stopping HTTP upload process for ~s: ~p", [ServerHost, Reason]),
|
?DEBUG("Stopping HTTP upload process for ~s: ~p", [ServerHost, Reason]),
|
||||||
|
|
|
@ -239,7 +239,7 @@ handle_info(Info, State) ->
|
||||||
?ERROR_MSG("Got unexpected info: ~p", [Info]),
|
?ERROR_MSG("Got unexpected info: ~p", [Info]),
|
||||||
{noreply, State}.
|
{noreply, State}.
|
||||||
|
|
||||||
-spec terminate(normal | shutdown | {shutdown, _} | _, _) -> ok.
|
-spec terminate(normal | shutdown | {shutdown, _} | _, state()) -> ok.
|
||||||
|
|
||||||
terminate(Reason, #state{server_host = ServerHost, timers = Timers}) ->
|
terminate(Reason, #state{server_host = ServerHost, timers = Timers}) ->
|
||||||
?DEBUG("Stopping upload quota process for ~s: ~p", [ServerHost, Reason]),
|
?DEBUG("Stopping upload quota process for ~s: ~p", [ServerHost, Reason]),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue