summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2016-04-19 09:15:09 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2016-04-19 09:15:09 +0200
commit382c6ce1fb9f6179aedfb9ef3db129c3c24a3abd (patch)
tree759526bc30720d6d1daabaa088c10361e1b4b237
parentUse erlang 18.3 in travis tests (diff)
Specify type of second terminate/2 parameter
-rw-r--r--src/mod_http_upload.erl2
-rw-r--r--src/mod_http_upload_quota.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_http_upload.erl b/src/mod_http_upload.erl
index 214badca..b01ca9d2 100644
--- a/src/mod_http_upload.erl
+++ b/src/mod_http_upload.erl
@@ -375,7 +375,7 @@ handle_info(Info, State) ->
?ERROR_MSG("Got unexpected info: ~p", [Info]),
{noreply, State}.
--spec terminate(normal | shutdown | {shutdown, _} | _, _) -> ok.
+-spec terminate(normal | shutdown | {shutdown, _} | _, state()) -> ok.
terminate(Reason, #state{server_host = ServerHost, host = Host}) ->
?DEBUG("Stopping HTTP upload process for ~s: ~p", [ServerHost, Reason]),
diff --git a/src/mod_http_upload_quota.erl b/src/mod_http_upload_quota.erl
index a5ae0c3c..4f9d9521 100644
--- a/src/mod_http_upload_quota.erl
+++ b/src/mod_http_upload_quota.erl
@@ -239,7 +239,7 @@ handle_info(Info, State) ->
?ERROR_MSG("Got unexpected info: ~p", [Info]),
{noreply, State}.
--spec terminate(normal | shutdown | {shutdown, _} | _, _) -> ok.
+-spec terminate(normal | shutdown | {shutdown, _} | _, state()) -> ok.
terminate(Reason, #state{server_host = ServerHost, timers = Timers}) ->
?DEBUG("Stopping upload quota process for ~s: ~p", [ServerHost, Reason]),