Apply suggestion to lib/pleroma/http/http.ex
This commit is contained in:
parent
d30ff35d94
commit
614e3934f9
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ defmodule Pleroma.HTTP do
|
||||||
client <- Tesla.client([Tesla.Middleware.FollowRedirects], tesla_adapter()),
|
client <- Tesla.client([Tesla.Middleware.FollowRedirects], tesla_adapter()),
|
||||||
pid <- Process.whereis(adapter_opts[:pool]) do
|
pid <- Process.whereis(adapter_opts[:pool]) do
|
||||||
pool_alive? =
|
pool_alive? =
|
||||||
if tesla_adapter() == Tesla.Adapter.Gun do
|
if tesla_adapter() == Tesla.Adapter.Gun && pid do
|
||||||
if pid, do: Process.alive?(pid), else: false
|
Process.alive?(pid)
|
||||||
else
|
else
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue