summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-04-21 08:51:45 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-05-06 13:25:47 +0300
commit779b991e03df673d006071f5867e56a41a19b2bf (patch)
tree4c950340c17dd724db27305fdc64c2894b195719
parent6f09161dd842187b8ba3e4f328e62718be411464 (diff)
hibernate for pool processes
-rw-r--r--lib/pleroma/pool/request.ex16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/pleroma/pool/request.ex b/lib/pleroma/pool/request.ex
index 3fb930db7..1da8952a3 100644
--- a/lib/pleroma/pool/request.ex
+++ b/lib/pleroma/pool/request.ex
@@ -24,42 +24,42 @@ defmodule Pleroma.Pool.Request do
def handle_call({:execute, client, request}, _from, state) do
response = Pleroma.HTTP.request(client, request)
- {:reply, response, state}
+ {:reply, response, state, :hibernate}
end
@impl true
def handle_info({:gun_data, _conn, _stream, _, _}, state) do
- {:noreply, state}
+ {:noreply, state, :hibernate}
end
@impl true
def handle_info({:gun_up, _conn, _protocol}, state) do
- {:noreply, state}
+ {:noreply, state, :hibernate}
end
@impl true
def handle_info({:gun_down, _conn, _protocol, _reason, _killed}, state) do
- {:noreply, state}
+ {:noreply, state, :hibernate}
end
@impl true
def handle_info({:gun_error, _conn, _stream, _error}, state) do
- {:noreply, state}
+ {:noreply, state, :hibernate}
end
@impl true
def handle_info({:gun_push, _conn, _stream, _new_stream, _method, _uri, _headers}, state) do
- {:noreply, state}
+ {:noreply, state, :hibernate}
end
@impl true
def handle_info({:gun_response, _conn, _stream, _, _status, _headers}, state) do
- {:noreply, state}
+ {:noreply, state, :hibernate}
end
@impl true
def handle_info(msg, state) do
Logger.warn("Received unexpected message #{inspect(__MODULE__)} #{inspect(msg)}")
- {:noreply, state}
+ {:noreply, state, :hibernate}
end
end