Просмотр исходного кода

Use the ranch_tcp:opts() type in cowboy:start_http/4 spec

Loïc Hoguin 12 лет назад
Родитель
Сommit
e4bb2ffc77
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/cowboy.erl

+ 1 - 1
src/cowboy.erl

@@ -37,7 +37,7 @@
 -export_type([onresponse_fun/0]).
 
 %% @doc Start an HTTP listener.
--spec start_http(ranch:ref(), non_neg_integer(), any(),
+-spec start_http(ranch:ref(), non_neg_integer(), ranch_tcp:opts(),
 	cowboy_protocol:opts()) -> {ok, pid()}.
 start_http(Ref, NbAcceptors, TransOpts, ProtoOpts)
 		when is_integer(NbAcceptors), NbAcceptors > 0 ->