add spec back

This commit is contained in:
Egor Kislitsyn 2019-01-29 00:35:57 +07:00
parent 56533495b5
commit 1724a6b34b

View File

@ -76,6 +76,7 @@ defmodule Pleroma.Jobs do
apply(mod, :perform, args)
end
else
@spec enqueue(atom(), atom(), [any()], integer()) :: :ok
def enqueue(queue_name, mod, args, priority) do
GenServer.cast(__MODULE__, {:enqueue, queue_name, mod, args, priority})
end