diff options
Diffstat (limited to 'src/catlfish_sup.erl')
-rw-r--r-- | src/catlfish_sup.erl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/catlfish_sup.erl b/src/catlfish_sup.erl index 353b691..8b43faf 100644 --- a/src/catlfish_sup.erl +++ b/src/catlfish_sup.erl @@ -21,18 +21,17 @@ permanent_worker(Name, StartFunc, Modules) -> gen_http_config(Config, SSLOptions, SSLFlag) -> {ChildName, IpAddress, Port, Module} = Config, - {ok, IPv4Address} = - inet:parse_ipv4strict_address(IpAddress), + {ok, IPv4Address} = inet:parse_ipv4strict_address(IpAddress), WebConfig = [{ip, IPv4Address}, {port, Port}, {ssl, SSLFlag}, - {acceptor_pool_size, application:get_env(catlfish, http_server_pool_size, 16)}, + {acceptor_pool_size, + application:get_env(catlfish, http_server_pool_size, 16)}, {ssl_opts, SSLOptions} ], {ChildName, {catlfish_web, start, [WebConfig, Module, ChildName]}, - permanent, 5000, - worker, dynamic}. + permanent, 5000, worker, dynamic}. init([]) -> SSLOptions = |