aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ranch.erl')
-rw-r--r--src/ranch.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ranch.erl b/src/ranch.erl
index c0f86a9..424d4d7 100644
--- a/src/ranch.erl
+++ b/src/ranch.erl
@@ -181,7 +181,7 @@ stop_listener(Ref) ->
{error, Reason}
end.
--spec suspend_listener(ref()) -> ok | {error, term()}.
+-spec suspend_listener(ref()) -> ok | {error, any()}.
suspend_listener(Ref) ->
case get_status(Ref) of
running ->
@@ -192,7 +192,7 @@ suspend_listener(Ref) ->
ok
end.
--spec resume_listener(ref()) -> ok | {error, term()}.
+-spec resume_listener(ref()) -> ok | {error, any()}.
resume_listener(Ref) ->
case get_status(Ref) of
running ->
@@ -263,7 +263,7 @@ remove_connection(Ref) ->
ConnsSup ! {remove_connection, Ref, self()},
ok.
--spec get_status(ref()) -> running | suspended | restarting.
+-spec get_status(ref()) -> running | suspended.
get_status(Ref) ->
ListenerSup = ranch_server:get_listener_sup(Ref),
Children = supervisor:which_children(ListenerSup),