From 382c6ce1fb9f6179aedfb9ef3db129c3c24a3abd Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 19 Apr 2016 09:15:09 +0200 Subject: [PATCH] Specify type of second terminate/2 parameter --- src/mod_http_upload.erl | 2 +- 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 214badca5..b01ca9d2d 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 a5ae0c3cc..4f9d95217 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]),