mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-03 05:48:42 +00:00
Trust the connection pools to enforce the concurrency limitations
This commit is contained in:
parent
6708f154a4
commit
d272eb62cd
1 changed files with 1 additions and 3 deletions
|
@ -30,9 +30,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.MediaProxyWarmingPolicy do
|
||||||
if Pleroma.Config.get(:env) == :test do
|
if Pleroma.Config.get(:env) == :test do
|
||||||
fetch(prefetch_url)
|
fetch(prefetch_url)
|
||||||
else
|
else
|
||||||
ConcurrentLimiter.limit(__MODULE__, fn ->
|
Task.start(fn -> fetch(prefetch_url) end)
|
||||||
Task.start(fn -> fetch(prefetch_url) end)
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue