From b6c8a213d761e2149c22739089250e91cab4ad47 Mon Sep 17 00:00:00 2001 From: Jay Doane Date: Tue, 28 Jan 2020 19:06:07 -0800 Subject: Delete unused ets table creation This ets table was a holdover from when couch_expiring_cache was a non- library OTP application. It is unused, and would prevent multiple users of the library in the same project. --- src/couch_expiring_cache/src/couch_expiring_cache_server.erl | 1 - 1 file changed, 1 deletion(-) diff --git a/src/couch_expiring_cache/src/couch_expiring_cache_server.erl b/src/couch_expiring_cache/src/couch_expiring_cache_server.erl index 6f9dc1fd1..65e742bba 100644 --- a/src/couch_expiring_cache/src/couch_expiring_cache_server.erl +++ b/src/couch_expiring_cache/src/couch_expiring_cache_server.erl @@ -43,7 +43,6 @@ start_link(Name, Opts) when is_atom(Name) -> init(Opts) -> - ?MODULE = ets:new(?MODULE, [named_table, public, {read_concurrency, true}]), DefaultCacheName = atom_to_binary(maps:get(name, Opts), utf8), Period = maps:get(period, Opts, ?DEFAULT_PERIOD_MSEC), MaxJitter = maps:get(max_jitter, Opts, ?DEFAULT_MAX_JITTER_MSEC), -- cgit v1.2.1