From fd0e7d18d96fb242088d8c6bb7ea5e1eb7053ce8 Mon Sep 17 00:00:00 2001 From: href Date: Mon, 5 Nov 2018 18:04:43 +0100 Subject: [PATCH] handle_continue is OTP21+ --- lib/pleroma/emoji.ex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/pleroma/emoji.ex b/lib/pleroma/emoji.ex index cc9713b53..7da1a2438 100644 --- a/lib/pleroma/emoji.ex +++ b/lib/pleroma/emoji.ex @@ -41,11 +41,12 @@ def get_all() 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