Skip to content

Commit

Permalink
Cleanup ETS table before inserting changes [minor]
Browse files Browse the repository at this point in the history
Deleted APIs where kept working until node restart.
  • Loading branch information
AndrewDryga committed May 29, 2017
1 parent 298c2cd commit 19b8078
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/annon_api/configuration/cache_adapters/ets.ex
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ defmodule Annon.Configuration.CacheAdapters.ETS do
[] ->
:ok
objects when is_list(objects) ->
true = :ets.delete_all_objects(table_name)
true = :ets.insert(table_name, objects)
:ok
end
Expand Down

0 comments on commit 19b8078

Please sign in to comment.