0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Improve the listener name in the README

This commit is contained in:
Loïc Hoguin 2012-01-23 07:42:35 +01:00
parent b650ef8907
commit 7482c0de75

View file

@ -79,7 +79,7 @@ Dispatch = [
{'_', [{'_', my_handler, []}]}
],
%% Name, NbAcceptors, Transport, TransOpts, Protocol, ProtoOpts
cowboy:start_listener(http, 100,
cowboy:start_listener(my_http_listener, 100,
cowboy_tcp_transport, [{port, 8080}],
cowboy_http_protocol, [{dispatch, Dispatch}]
).