diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-04-19 09:15:09 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-04-19 09:15:09 +0200 |
commit | 382c6ce1fb9f6179aedfb9ef3db129c3c24a3abd (patch) | |
tree | 759526bc30720d6d1daabaa088c10361e1b4b237 /src | |
parent | Use erlang 18.3 in travis tests (diff) |
Specify type of second terminate/2 parameter
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_http_upload.erl | 2 | ||||
-rw-r--r-- | src/mod_http_upload_quota.erl | 2 |
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]), |