mirror of
https://git.rape.pet/ulith/amputoma.git
synced 2025-02-25 06:03:59 +01:00
handle_continue is OTP21+
This commit is contained in:
parent
d096bc17bf
commit
fd0e7d18d9
1 changed files with 3 additions and 2 deletions
|
@ -41,11 +41,12 @@ defmodule Pleroma.Emoji do
|
||||||
@doc false
|
@doc false
|
||||||
def init(_) do
|
def init(_) do
|
||||||
@ets = :ets.new(@ets, @ets_options)
|
@ets = :ets.new(@ets, @ets_options)
|
||||||
{:ok, nil, {:continue, :reload}}
|
GenServer.cast(self(), :reload)
|
||||||
|
{:ok, nil}
|
||||||
end
|
end
|
||||||
|
|
||||||
@doc false
|
@doc false
|
||||||
def handle_continue(:reload, state) do
|
def handle_cast(:reload, state) do
|
||||||
load()
|
load()
|
||||||
{:noreply, state}
|
{:noreply, state}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue