Trust the connection pools to enforce the concurrency limitations

This commit is contained in:
Mark Felder 2024-05-27 11:22:45 -04:00
parent 6708f154a4
commit d272eb62cd

View File

@ -30,9 +30,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy do
if Pleroma.Config.get(:env) == :test do
fetch(prefetch_url)
else
ConcurrentLimiter.limit(__MODULE__, fn ->
Task.start(fn -> fetch(prefetch_url) end)
end)
Task.start(fn -> fetch(prefetch_url) end)
end
end
end