Trust the connection pools to enforce the concurrency limitations
This commit is contained in:
parent
6708f154a4
commit
d272eb62cd
|
@ -30,9 +30,7 @@ defp prefetch(url) do
|
|||
if Pleroma.Config.get(:env) == :test do
|
||||
fetch(prefetch_url)
|
||||
else
|
||||
ConcurrentLimiter.limit(__MODULE__, fn ->
|
||||
Task.start(fn -> fetch(prefetch_url) end)
|
||||
end)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue