aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_protocol.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-05-16 19:13:36 +0200
committerLoïc Hoguin <[email protected]>2013-05-16 19:13:36 +0200
commitbb89bf6f8d9cb652b758568ead5f8ed21b09add6 (patch)
treef81fd53c949ebc48e2214c62f362a342b1fe5ebe /src/cowboy_protocol.erl
parent3d2f7218c5db76f63b268fdd729be138e1c6b963 (diff)
downloadcowboy-bb89bf6f8d9cb652b758568ead5f8ed21b09add6.tar.gz
cowboy-bb89bf6f8d9cb652b758568ead5f8ed21b09add6.tar.bz2
cowboy-bb89bf6f8d9cb652b758568ead5f8ed21b09add6.zip
Use the type ranch:ref() instead of any() where applicable
Diffstat (limited to 'src/cowboy_protocol.erl')
-rw-r--r--src/cowboy_protocol.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_protocol.erl b/src/cowboy_protocol.erl
index 8a0ff17..06c5446 100644
--- a/src/cowboy_protocol.erl
+++ b/src/cowboy_protocol.erl
@@ -92,7 +92,7 @@
%% API.
%% @doc Start an HTTP protocol process.
--spec start_link(any(), inet:socket(), module(), opts()) -> {ok, pid()}.
+-spec start_link(ranch:ref(), inet:socket(), module(), opts()) -> {ok, pid()}.
start_link(Ref, Socket, Transport, Opts) ->
Pid = spawn_link(?MODULE, init, [Ref, Socket, Transport, Opts]),
{ok, Pid}.
@@ -108,7 +108,7 @@ get_value(Key, Opts, Default) ->
end.
%% @private
--spec init(any(), inet:socket(), module(), opts()) -> ok.
+-spec init(ranch:ref(), inet:socket(), module(), opts()) -> ok.
init(Ref, Socket, Transport, Opts) ->
Compress = get_value(compress, Opts, false),
MaxEmptyLines = get_value(max_empty_lines, Opts, 5),