From 86419f500e74386a4613d4cee0aab66e129d7ed5 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 24 Oct 2014 13:23:59 +0200 Subject: Whitespace. No long lines. --- src/catlfish_sup.erl | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/catlfish_sup.erl b/src/catlfish_sup.erl index 143e601..abdac44 100644 --- a/src/catlfish_sup.erl +++ b/src/catlfish_sup.erl @@ -10,22 +10,25 @@ start_link(_Args) -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> - SSLOptions = [{certfile, application:get_env(catlfish, https_certfile, none)}, - {keyfile, application:get_env(catlfish, https_keyfile, none)}, - {cacertfile, application:get_env(catlfish, https_cacertfile, none)}], - Servers = lists:map(fun (Config) -> - {IpAddress, Port, Module} = Config, - {ok, IPv4Address} = inet:parse_ipv4strict_address(IpAddress), - WebConfig = [{ip, IPv4Address}, - {port, Port}, - {ssl, true}, - {ssl_opts, SSLOptions} - ], - {catlfish_web, - {catlfish_web, start, [WebConfig, Module]}, - permanent, 5000, - worker, dynamic} - end, application:get_env(catlfish, https_servers, [])), + SSLOptions = + [{certfile, application:get_env(catlfish, https_certfile, none)}, + {keyfile, application:get_env(catlfish, https_keyfile, none)}, + {cacertfile, application:get_env(catlfish, https_cacertfile, none)}], + Servers = + lists:map(fun (Config) -> + {IpAddress, Port, Module} = Config, + {ok, IPv4Address} = + inet:parse_ipv4strict_address(IpAddress), + WebConfig = [{ip, IPv4Address}, + {port, Port}, + {ssl, true}, + {ssl_opts, SSLOptions} + ], + {catlfish_web, + {catlfish_web, start, [WebConfig, Module]}, + permanent, 5000, + worker, dynamic} + end, application:get_env(catlfish, https_servers, [])), {ok, {{one_for_one, 3, 10}, Servers}}. -- cgit v1.1