From 4b80e31bc48a7fd8552ee34f59de26c790b19ceb Mon Sep 17 00:00:00 2001 From: juhlig Date: Wed, 19 Feb 2020 11:49:17 +0100 Subject: Prevent side effects in init of supervisors --- src/ranch_app.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ranch_app.erl') diff --git a/src/ranch_app.erl b/src/ranch_app.erl index e65db48..8069239 100644 --- a/src/ranch_app.erl +++ b/src/ranch_app.erl @@ -22,6 +22,8 @@ -spec start(application:start_type(), term()) -> {ok, pid()} | {error, term()}. start(_, _) -> _ = consider_profiling(), + ranch_server = ets:new(ranch_server, [ + ordered_set, public, named_table]), ranch_sup:start_link(). -spec stop(term()) -> ok. -- cgit v1.2.3