cat-bookmarker/deps/plug_crypto/lib/plug/crypto/application.ex

16 lines
359 B
Elixir
Raw Normal View History

2024-03-10 18:52:04 +00:00
defmodule Plug.Crypto.Application do
use Application
def start(_, _) do
children = [
{Agent, &start_crypto_keys/0}
]
Supervisor.start_link(children, strategy: :one_for_one, name: __MODULE__)
end
defp start_crypto_keys do
Plug.Crypto.Keys = :ets.new(Plug.Crypto.Keys, [:named_table, :public, read_concurrency: true])
end
end