diff options
author | Loïc Hoguin <[email protected]> | 2011-03-21 22:22:30 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-03-21 22:22:30 +0100 |
commit | c366343ac6b91de3af810584583bb90ff5fc5ddc (patch) | |
tree | c8e708ff29c00d3eff46d289f7cf2ccf47e36778 | |
parent | 0b13835bfea9107773ee06ae5914998d20ca7477 (diff) | |
download | cowboy-c366343ac6b91de3af810584583bb90ff5fc5ddc.tar.gz cowboy-c366343ac6b91de3af810584583bb90ff5fc5ddc.tar.bz2 cowboy-c366343ac6b91de3af810584583bb90ff5fc5ddc.zip |
Fix spec for cowboy_http_protocol:init/3.
-rw-r--r-- | src/cowboy_http_protocol.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cowboy_http_protocol.erl b/src/cowboy_http_protocol.erl index 34f0c0d..2ac4e54 100644 --- a/src/cowboy_http_protocol.erl +++ b/src/cowboy_http_protocol.erl @@ -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), |