summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-08-27 21:55:06 -0400
committerMark Felder <feld@feld.me>2024-08-27 21:55:07 -0400
commit116fe77b77eedd2feb073d3be256fea08169c95b (patch)
treec902335eed120374b9066f78c7827540b542eb99
parent0a86d2b3ac9c90a16aec1237019ecfcb1e680728 (diff)
downloadpleroma-116fe77b77eedd2feb073d3be256fea08169c95b.tar.gz
pleroma-116fe77b77eedd2feb073d3be256fea08169c95b.zip
Tesla.Middleware.Timeout breaks streaming bodies
These are executed by Oban now and Oban can enforce the timeout if the regular HTTP timeout is not sufficient.
-rw-r--r--lib/pleroma/web/rich_media/helpers.ex3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/pleroma/web/rich_media/helpers.ex b/lib/pleroma/web/rich_media/helpers.ex
index db1310b23..880d19218 100644
--- a/lib/pleroma/web/rich_media/helpers.ex
+++ b/lib/pleroma/web/rich_media/helpers.ex
@@ -96,12 +96,9 @@ defmodule Pleroma.Web.RichMedia.Helpers do
end
defp http_options do
- timeout = Config.get!([:rich_media, :timeout])
-
[
pool: :rich_media,
max_body: Config.get([:rich_media, :max_body], 5_000_000),
- tesla_middleware: [{Tesla.Middleware.Timeout, timeout: timeout}],
stream: true
]
end