From 46ada7fff0bca928cca0d9d03cb0ef54b3232787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 31 May 2012 15:34:53 +0200 Subject: Add Transport:connect/3 and remove types unneeded by R15B+ Also use one export per line to improve future diffs. Bump the version to 0.2.1 to reflect this change. --- src/ranch_app.erl | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/ranch_app.erl') 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. -- cgit v1.2.3