Use connection pools.
This commit is contained in:
parent
4d5161b16d
commit
ec83175100
5 changed files with 9 additions and 5 deletions
|
|
@ -351,7 +351,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
|||
Logger.info("Federating #{id} to #{inbox}")
|
||||
host = URI.parse(inbox).host
|
||||
signature = Pleroma.Web.HTTPSignatures.sign(actor, %{host: host, "content-length": byte_size(json)})
|
||||
@httpoison.post(inbox, json, [{"Content-Type", "application/activity+json"}, {"signature", signature}])
|
||||
@httpoison.post(inbox, json, [{"Content-Type", "application/activity+json"}, {"signature", signature}], hackney: [pool: :default])
|
||||
end
|
||||
|
||||
# TODO:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue