Browse Source

Remove default pool, it's used automatically anyway.

tags/v0.9.9
lain 5 years ago
parent
commit
d4799e0dc2
3 changed files with 1 additions and 4 deletions
  1. +0
    -1
      lib/pleroma/http/connection.ex
  2. +0
    -1
      lib/pleroma/http/http.ex
  3. +1
    -2
      lib/pleroma/web/activity_pub/activity_pub.ex

+ 0
- 1
lib/pleroma/http/connection.ex View File

@@ -8,7 +8,6 @@ defmodule Pleroma.HTTP.Connection do
"""

@hackney_options [
pool: :default,
timeout: 10000,
recv_timeout: 20000,
follow_redirect: true


+ 0
- 1
lib/pleroma/http/http.ex View File

@@ -56,7 +56,6 @@ defmodule Pleroma.HTTP do
def process_request_options(options) do
config = Application.get_env(:pleroma, :http, [])
proxy = Keyword.get(config, :proxy_url, nil)
options = options ++ [adapter: [pool: :default]]

case proxy do
nil -> options


+ 1
- 2
lib/pleroma/web/activity_pub/activity_pub.ex View File

@@ -741,8 +741,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
{"Content-Type", "application/activity+json"},
{"signature", signature},
{"digest", digest}
],
hackney: [pool: :default]
]
)
end



Loading…
Cancel
Save