diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-01-28 23:12:02 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-01-28 23:12:02 +0700 |
commit | b2e9700785124a8ba4cfb037ae92a6bfc7c3b224 (patch) | |
tree | bdf49e3c834064bfa2f86d00d7b84229e9532a1a | |
parent | 55affbca7fcb214c71b3f8378b0de869c4d4d072 (diff) | |
download | pleroma-b2e9700785124a8ba4cfb037ae92a6bfc7c3b224.tar.gz pleroma-b2e9700785124a8ba4cfb037ae92a6bfc7c3b224.zip |
cleanup
-rw-r--r-- | lib/pleroma/jobs.ex | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/pleroma/jobs.ex b/lib/pleroma/jobs.ex index dff0f2197..2a75ff529 100644 --- a/lib/pleroma/jobs.ex +++ b/lib/pleroma/jobs.ex @@ -40,7 +40,7 @@ defmodule Pleroma.Jobs do ## Arguments - `queue_name` - a queue name(must be specified in the config). - - `mod` - a worker module, must have `perform` function. + - `mod` - a worker module (must have `perform` function). - `args` - a list of arguments for the `perform` function of the worker module. - `priority` - a job priority (`0` by default). @@ -76,7 +76,6 @@ defmodule Pleroma.Jobs do apply(mod, :perform, args) end else - @spec enqueue(atom(), atom(), [any()], integer()) :: :ok def enqueue(queue_name, mod, args, priority \\ 1) do GenServer.cast(__MODULE__, {:enqueue, queue_name, mod, args, priority}) end @@ -95,11 +94,6 @@ defmodule Pleroma.Jobs do {:noreply, state} end - def handle_cast(m, state) do - IO.inspect("Unknown: #{inspect(m)}, #{inspect(state)}") - {:noreply, state} - end - def handle_info({:DOWN, ref, :process, _pid, _reason}, state) do queue_name = state.refs[ref] |