mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Fix spec for cowboy_http_protocol:init/3.
This commit is contained in:
parent
0b13835bfe
commit
c366343ac6
1 changed files with 1 additions and 2 deletions
|
@ -38,8 +38,7 @@ start_link(Socket, Transport, Opts) ->
|
|||
|
||||
%% FSM.
|
||||
|
||||
-spec init(Socket::socket(), Transport::module(), Opts::term())
|
||||
-> ok | {error, no_ammo}.
|
||||
-spec init(Socket::socket(), Transport::module(), Opts::term()) -> ok.
|
||||
init(Socket, Transport, Opts) ->
|
||||
Dispatch = proplists:get_value(dispatch, Opts, []),
|
||||
Timeout = proplists:get_value(timeout, Opts, 5000),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue