aboutsummaryrefslogtreecommitdiffstats
path: root/examples/markdown_middleware
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-06-07 15:15:54 +0200
committerLoïc Hoguin <[email protected]>2017-06-07 15:15:54 +0200
commit6f7b59886ec17027b16ed4d10737452e17f233d0 (patch)
tree6beec34b1f3343ab250d3993d5a0d572cbd956f5 /examples/markdown_middleware
parent767da623f1f7329cb0b0d86c3c1876ccf098d60a (diff)
downloadcowboy-6f7b59886ec17027b16ed4d10737452e17f233d0.tar.gz
cowboy-6f7b59886ec17027b16ed4d10737452e17f233d0.tar.bz2
cowboy-6f7b59886ec17027b16ed4d10737452e17f233d0.zip
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.
Diffstat (limited to 'examples/markdown_middleware')
-rw-r--r--examples/markdown_middleware/src/markdown_middleware_app.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/markdown_middleware/src/markdown_middleware_app.erl b/examples/markdown_middleware/src/markdown_middleware_app.erl
index 06253bf..819fd53 100644
--- a/examples/markdown_middleware/src/markdown_middleware_app.erl
+++ b/examples/markdown_middleware/src/markdown_middleware_app.erl
@@ -16,7 +16,7 @@ start(_Type, _Args) ->
{"/[...]", cowboy_static, {priv_dir, markdown_middleware, ""}}
]}
]),
- {ok, _} = cowboy:start_clear(http, 100, [{port, 8080}], #{
+ {ok, _} = cowboy:start_clear(http, [{port, 8080}], #{
env => #{dispatch => Dispatch},
middlewares => [cowboy_router, markdown_converter, cowboy_handler]
}),