Remove MediaProxyWarmingPolicy config for ConcurrentLimiter as we are not using it

This commit is contained in:
Mark Felder 2024-05-27 14:11:42 -04:00
parent 8b61d4e3e1
commit 6b8c15a4a1
2 changed files with 1 additions and 6 deletions

View File

@ -902,7 +902,6 @@
config :pleroma, ConcurrentLimiter, [
{Pleroma.Web.RichMedia.Helpers, [max_running: 5, max_waiting: 5]},
{Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy, [max_running: 5, max_waiting: 5]},
{Pleroma.Search, [max_running: 30, max_waiting: 50]}
]

View File

@ -22,11 +22,7 @@ defp prefetch(url) do
Logger.debug("Prefetching #{inspect(url)} as #{inspect(prefetch_url)}")
if Pleroma.Config.get(:env) == :test do
fetch(prefetch_url)
else
Task.start(fn -> fetch(prefetch_url) end)
end
fetch(prefetch_url)
end
end