handle_continue is OTP21+

This commit is contained in:
href 2018-11-05 18:04:43 +01:00
parent d096bc17bf
commit fd0e7d18d9
No known key found for this signature in database
GPG key ID: EE8296C1A152C325

View file

@ -41,11 +41,12 @@ defmodule Pleroma.Emoji do
@doc false
def init(_) do
@ets = :ets.new(@ets, @ets_options)
{:ok, nil, {:continue, :reload}}
GenServer.cast(self(), :reload)
{:ok, nil}
end
@doc false
def handle_continue(:reload, state) do
def handle_cast(:reload, state) do
load()
{:noreply, state}
end