Specify type of second terminate/2 parameter
authorHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 19 Apr 2016 07:15:09 +0000 (09:15 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 19 Apr 2016 07:15:09 +0000 (09:15 +0200)
src/mod_http_upload.erl
src/mod_http_upload_quota.erl

index 214badca5282083bfbb7f94390eca89888832eb5..b01ca9d2d4d5602c95bef43830d287af637471a0 100644 (file)
@@ -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]),
index a5ae0c3cc0141fc6046b387388cf2704caa9a155..4f9d9521768b09517745e567cbb01d5694d41ab4 100644 (file)
@@ -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]),