aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch_app.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-05-31 15:34:53 +0200
committerLoïc Hoguin <[email protected]>2012-06-04 08:47:22 +0200
commit46ada7fff0bca928cca0d9d03cb0ef54b3232787 (patch)
tree40fcf68e364fa3497a55c23e019db673b61be7d7 /src/ranch_app.erl
parentc19a4b4f3c5b25d7b064fc58a90875b55df30aca (diff)
downloadranch-46ada7fff0bca928cca0d9d03cb0ef54b3232787.tar.gz
ranch-46ada7fff0bca928cca0d9d03cb0ef54b3232787.tar.bz2
ranch-46ada7fff0bca928cca0d9d03cb0ef54b3232787.zip
Add Transport:connect/3 and remove types unneeded by R15B+0.2.1
Also use one export per line to improve future diffs. Bump the version to 0.2.1 to reflect this change.
Diffstat (limited to 'src/ranch_app.erl')
-rw-r--r--src/ranch_app.erl14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/ranch_app.erl b/src/ranch_app.erl
index 0dc687c..2402de6 100644
--- a/src/ranch_app.erl
+++ b/src/ranch_app.erl
@@ -16,20 +16,18 @@
-module(ranch_app).
-behaviour(application).
--export([start/2, stop/1, profile_output/0]). %% API.
-
--type application_start_type() :: normal
- | {takeover, node()} | {failover, node()}.
+%% API.
+-export([start/2]).
+-export([stop/1]).
+-export([profile_output/0]).
%% API.
--spec start(application_start_type(), any()) -> {ok, pid()}.
-start(_Type, _Args) ->
+start(_, _) ->
consider_profiling(),
ranch_sup:start_link().
--spec stop(any()) -> ok.
-stop(_State) ->
+stop(_) ->
ok.
-spec profile_output() -> ok.