projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d096bc1
)
handle_continue is OTP21+
author
href
<href@random.sh>
Mon, 5 Nov 2018 17:04:43 +0000
(18:04 +0100)
committer
href
<href@random.sh>
Mon, 5 Nov 2018 17:04:43 +0000
(18:04 +0100)
lib/pleroma/emoji.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/emoji.ex
b/lib/pleroma/emoji.ex
index cc9713b5349a22951121a9b1983b787dbc753e18..7da1a24383406781f35c155791356256dbddb129 100644
(file)
--- a/
lib/pleroma/emoji.ex
+++ b/
lib/pleroma/emoji.ex
@@
-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_c
ontinue
(:reload, state) do
+ def handle_c
ast
(:reload, state) do
load()
{:noreply, state}
end