mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 12:40:25 +00:00
Remove NumAcceptors argument from start_clear/tls
They are now cowboy:start_clear/3 and cowboy:start_tls/3. The NumAcceptors argument can be specified via the num_acceptor transport option. Ranch has been updated to 1.4.0 to that effect.
This commit is contained in:
parent
767da623f1
commit
6f7b59886e
30 changed files with 45 additions and 83 deletions
|
@ -203,7 +203,7 @@ Dispatch = cowboy_router:compile([
|
|||
{'_', [{'_', my_handler, #{}}]}
|
||||
]),
|
||||
%% Name, NbAcceptors, TransOpts, ProtoOpts
|
||||
cowboy:start_clear(my_http_listener, 100,
|
||||
cowboy:start_clear(my_http_listener,
|
||||
[{port, 8080}],
|
||||
#{env => #{dispatch => Dispatch}}
|
||||
).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue