aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ranch_server.erl2
-rw-r--r--src/ranch_sup.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ranch_server.erl b/src/ranch_server.erl
index faec9b6..b0ae612 100644
--- a/src/ranch_server.erl
+++ b/src/ranch_server.erl
@@ -95,8 +95,6 @@ remove_connection(ListenerPid) ->
%% @private
init([]) ->
- ?TAB = ets:new(?TAB, [
- ordered_set, public, named_table, {write_concurrency, true}]),
{ok, #state{}}.
%% @private
diff --git a/src/ranch_sup.erl b/src/ranch_sup.erl
index ff05194..ad1c558 100644
--- a/src/ranch_sup.erl
+++ b/src/ranch_sup.erl
@@ -33,6 +33,8 @@ start_link() ->
%% supervisor.
init([]) ->
+ ranch_server = ets:new(ranch_server, [
+ ordered_set, public, named_table, {write_concurrency, true}]),
Procs = [
{ranch_server, {ranch_server, start_link, []},
permanent, 5000, worker, [ranch_server]}