handle_continue is OTP21+
authorhref <href@random.sh>
Mon, 5 Nov 2018 17:04:43 +0000 (18:04 +0100)
committerhref <href@random.sh>
Mon, 5 Nov 2018 17:04:43 +0000 (18:04 +0100)
lib/pleroma/emoji.ex

index cc9713b5349a22951121a9b1983b787dbc753e18..7da1a24383406781f35c155791356256dbddb129 100644 (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